Color Converter
Convert any colour between HEX, RGB and HSL. Edit any value — or use the colour picker — and everything else updates instantly. Click a value to copy it.
Tints (towards white)
Shades (towards black)
Click any tint or shade chip to load that colour into the converter.
Three Ways to Describe the Same Colour
A screen colour is always, underneath, a mixture of red, green and blue light. The three formats in this converter are simply three different languages for describing that mixture, and each exists because it suits a different kind of thinking. HEX is the shorthand of the web: a hash sign followed by six characters, where the first pair gives the red amount, the second pair the green, and the third pair the blue, each pair written in hexadecimal (base 16) from 00 for none to FF for full. So #FF0000 is full red with no green or blue — pure red — and #3B82F6 is a mid blue with a little red and a lot of green mixed in. HEX is compact, copy-paste friendly, and the format you will meet in design files, CSS and brand guidelines.
RGB says the same thing in ordinary decimal numbers: rgb(59, 130, 246) means red 59, green 130, blue 246, each on a 0–255 scale. It is the most literal format — it describes exactly what the screen's lights are doing — and it extends naturally to RGBA, where a fourth value controls transparency. HSL takes a completely different approach and describes colour the way humans actually think about it: Hue is the colour family itself, an angle on a colour wheel from 0° (red) through 120° (green) and 240° (blue) back to 360°; Saturation is how vivid or washed-out the colour is, from grey at 0% to intense at 100%; and Lightness is how bright it is, from black at 0% through the pure colour at 50% to white at 100%.
Why HSL Feels Like Magic Once You Try It
The lightness idea is the key that unlocks HSL. In HEX or RGB, making a colour "a bit lighter for the hover state" means changing all three numbers in the right proportion, which nobody can do in their head. In HSL you change exactly one number: raise lightness from 60% to 70% and the colour lightens while staying unmistakably the same colour. That is precisely how the tints and shades row under the converter is built — tints march lightness upward towards white, shades march it downward towards black. Designers build whole interface palettes this way: pick one brand hue, then derive hover states, borders, backgrounds and disabled states by sliding lightness and saturation, confident the family resemblance will hold.
Worked Example: A Brand Colour Workflow
Imagine a client hands you their logo as a photo and says "use this blue everywhere". You sample the blue with a picker and get #3B82F6 — the default colour loaded in this tool. The converter immediately gives you the other languages: rgb(59, 130, 246) for your developer, and hsl(217, 91%, 60%) for yourself. From the HSL you build the system in minutes: a tint at high lightness becomes the pale background of alert boxes, the base colour serves for buttons, and a shade at low lightness becomes the footer background and heading text. Because every variation shares hue 217°, the whole site feels like one colour told at different volumes — which is exactly what a professional palette is.
A Necessary Word About Contrast
One job no converter can do for you is checking that text stays readable on its background. Two colours can look pleasantly different side by side yet fail badly when one becomes small text on the other — light grey text on white is the classic offender, and it shuts out readers with low vision entirely. Accessibility guidelines (WCAG) ask for a contrast ratio of at least 4.5:1 for normal text. As a rule of thumb, if your text colour and background colour have very different lightness values, you are probably safe; if their lightness is close, check the pair with a dedicated contrast checker before shipping. Beautiful and unreadable is just unreadable.
Frequently Asked Questions
Are HEX, RGB and HSL colours identical, or approximations?
Identical. All three describe the same mixture of red, green and blue light, so converting between them loses nothing — #3B82F6, rgb(59, 130, 246) and hsl(217, 91%, 60%) are the very same colour written three ways.
What does the shorthand #FFF or #000 mean?
Three-digit HEX is a shortcut where each digit is doubled: #FFF means #FFFFFF (white) and #000 means #000000 (black). It only works when each pair happens to have two identical digits, which is why most colours need the full six.
Why does my colour look different in print?
Screens mix light (RGB); printers mix ink (CMYK), and ink cannot reproduce every colour light can — vivid screen blues and greens are the usual casualties. Convert with print in mind early if a colour must live in both worlds.
How do I make a lighter or darker version of a colour?
Switch to the HSL values and change only Lightness: higher for lighter, lower for darker. Or simply click one of the tint and shade chips under the converter — they are generated exactly that way.