Color Converter & Palette Generator
Convert colors between HEX, RGB, HSL, HSV, CMYK and OKLCH, and build shade scales and harmonies.
Paste any CSS colour: hex (with or without #), rgb(), hsl(), oklch() or a colour name.
Contrast with white text 4.47:1, with black text 4.70:1.
Tints and shades
Click a swatch to copy it. Your colour is marked; 50 is the lightest and 950 the darkest.
Colour harmonies
Hues turned around the HSL colour wheel, keeping saturation and lightness. Click a swatch to copy it.
Complementary
Analogous
Triadic
Split-complementary
Color Converter & Palette Generator FAQ
How do I convert HEX to RGB?
Paste the hex code, such as #6366f1 or just 6366f1, into the Colour field. The RGB field shows rgb(99, 102, 241) straight away, and the copy button beside it copies the value.
How do I convert RGB to HEX?
Paste rgb(99, 102, 241), or only the three numbers, into the Colour field or the RGB field. The HEX field updates as you type. Values with transparency, such as rgba(99, 102, 241, 0.5), give an 8-digit hex code.
What is OKLCH and why use it?
OKLCH describes a colour by lightness, chroma (colourfulness) and hue, and is designed so that equal steps look equally different to the eye. That makes it easier to build even shade scales. Modern browsers support oklch() in CSS, and Tailwind CSS v4 defines its colours with it.
What is the difference between HSL and HSV?
Both use a hue angle and a saturation, but HSL uses lightness, where 100% is always white, while HSV (also called HSB) uses value, where 100% is the brightest form of the colour. CSS supports HSL. HSV is what most design apps such as Photoshop and Figma show in their colour pickers.
How are the tints and shades made?
Your colour is placed at the step whose usual lightness is closest to its own, often 500. The other steps keep its hue, get lighter or darker in even steps in OKLCH, and lose some colourfulness towards the ends, much like the palettes in Tailwind CSS.
Is my colour sent anywhere?
No. Parsing, conversion and palettes are calculated in your browser, and nothing is uploaded or saved.