...

Colour Converter

Design tools, CSS and brand documents all describe the same colour in different ways: a HEX code here, RGB numbers there, HSL somewhere else. Converting between them by hand means arithmetic and typos. This tool shows one colour in all three web formats at once: pick a colour or type a HEX value, and the matching RGB and HSL values appear instantly, next to a large preview swatch. Everything happens in your browser; nothing is sent anywhere or stored.

Quick Answer: Pick a colour with the colour picker, or type a HEX value such as #732BB3, and the tool shows its RGB and HSL equivalents — click any of the three values to copy it.

Colour Converter

Click any value below to copy it.

HEX—
RGB—
HSL—

Everything happens in your browser; nothing is sent anywhere or stored.

Table of Contents

  • How to Use the Colour Converter
  • Worked Example
  • Key Features
  • Best Practices and Tips
  • Common Mistakes to Avoid
  • When This Tool Helps — and When It Doesn’t
  • Frequently Asked Questions
  • Related Tools

How to Use the Colour Converter

  1. Pick a colour with the “Pick a colour” swatch, or type a HEX value into the HEX box — for example #732BB3.
  2. Check the preview swatch and the three values under it: HEX, RGB and HSL, all describing the same colour.
  3. Click the value you need — HEX, RGB or HSL — to copy it, then paste it into your design tool or code.

Worked Example

Type #732BB3 — the InstaTrackr purple — into the HEX box. The swatch turns deep purple and the three values read: HEX #732BB3, RGB rgb(115, 43, 179), and HSL hsl(272, 61%, 44%). Three different descriptions, one identical colour. If your values match these, the converter is behaving exactly as expected, and you can trust it with your own brand colours.

Key Features

  • One colour shown in all three web formats at once: HEX, RGB and HSL.
  • Two ways in: pick from the colour swatch, or type an exact HEX value.
  • A large preview swatch, so you see the colour and not just its numbers.
  • Click any value to copy it — no retyping, no transposed digits.
  • Runs entirely in your browser: nothing is sent anywhere or stored, and there is no sign-up.

Best Practices and Tips

  • Always copy the value rather than retyping it — one wrong digit is a different colour.
  • Glance at the swatch before copying: if it does not look like the colour you expected, the HEX you typed is wrong.
  • Keep your brand HEX values written down, and convert from them so every tool and page matches.
  • Need a lighter or darker version of the same colour? Work in HSL and adjust the third value — the lightness — while keeping the hue.

Common Mistakes to Avoid

  • Typing a HEX with a digit missing or added, then converting a colour you never meant to use.
  • Reading RGB values in the wrong order — the three numbers are red, green and blue, in that order.
  • Copying the HEX when the tool or stylesheet you are pasting into asks for RGB, or the other way round.
  • Assuming #732bb3 and #732BB3 are different colours — HEX is not case-sensitive — while #732BB4, one digit changed, really is a different colour.

When This Tool Helps — and When It Doesn’t

This tool helps when a colour has to move: from a design tool into CSS, from a brand document into an app, or from a screenshot’s colour into your own palette. It converts values for one colour at a time — it does not build palettes, suggest combinations, or check whether two colours have enough contrast to be readable together. For those decisions you still need your own eye or a dedicated contrast checker.

Frequently Asked Questions

What is the difference between HEX, RGB and HSL?

They describe the same colour three ways. HEX is a six-digit code such as #732BB3. RGB lists how much red, green and blue the colour contains, each from 0 to 255 — for this purple, rgb(115, 43, 179). HSL lists hue, saturation and lightness instead, which many people find easier to adjust by hand.

Which format should I use?

Whichever one the tool, stylesheet or document in front of you asks for. All three describe the identical colour, so converting between them changes nothing about how the colour looks.

Why did my typed value not convert?

Check the HEX itself: it should be six characters drawn from the digits 0 to 9 and the letters A to F, usually written with a # in front. A letter outside A to F, or a missing digit, is the usual cause.

Related Tools

  • Instagram Size Maker — Fit a whole photo into Instagram’s post sizes without stretching it, with a colour of your choice as the pad.
  • JSON Formatter and Validator — Check JSON is valid, then format it neatly or minify it.
  • QR Code Generator — Turn a link or short text into a scannable QR code you can download as a PNG.