How to use the Color Converter tool
- Add a colourType it in any notation, like #0EA5E9, rgb(14 165 233), hsl(199 89% 48%) or a CSS name such as “coral”, or use the picker.
- Copy the right formatEvery notation is listed together; hit “Copy” beside the one your CSS, design app or printer needs.
- Test the contrastPick a text colour to get the WCAG ratio and see whether it passes AA and AAA.
- Explore variationsClick any tint, shade or harmony swatch to load it and view its values.
Colour converter features
- All the usual notationsHEX, including 8-digit with transparency, modern and legacy RGB, HSL, HSV/HSB and CMYK.
- Forgiving inputPaste colours however you found them: with or without #, using commas or spaces, percentages or named colours.
- Accessibility testWCAG 2 contrast ratio with plain pass or fail verdicts for body text and large text.
- Instant palettesA 19-step tint-and-shade ramp plus complementary, analogous and triadic suggestions.
- Fast and privateEvery conversion is calculated in your browser while you type.
Understanding colour formats
- HEX, like
#0EA5E9, is the everyday choice for web design, CSS and design handoff. - RGB, like
rgb(14 165 233), describes light on screens and is handy in CSS, photo editors and whenever you add transparency. - HSL, like
hsl(199 89% 48%), makes it easy to build palettes and lighter or darker variants. - HSV or HSB, like
hsv(199, 94%, 91%), is what colour pickers in Photoshop, Figma and similar apps use. - CMYK, like
cmyk(94%, 29%, 0%, 9%), expresses the cyan, magenta, yellow and black ink used in printing.
HEX is just RGB in hexadecimal: in #0EA5E9, the pairs 0E, A5 and E9 stand for red 14, green 165 and blue 233. Add a fourth pair for transparency, so #0EA5E980 is roughly half opaque.
Why designers love HSL
HSL matches how people think about colour: hue is the angle on the colour wheel from 0 to 360°, saturation is how intense it is, and lightness is how bright or dark. For a button’s hover state, keep hue and saturation and drop lightness by 8–10 points; for a soft background, reduce saturation and raise lightness.
About CMYK conversion
Displays mix light (RGB) whereas printers mix ink (CMYK), so many vivid screen colours simply can’t be reproduced on paper. The CMYK figures here come from a standard mathematical formula. For professional printing, your print shop’s colour profile, such as FOGRA39 or GRACoL, produces the most faithful values, so request a proof when colour accuracy matters.
WCAG colour contrast
The Web Content Accessibility Guidelines express contrast as a ratio between 1:1, meaning none, and 21:1, black on white. Level AA requires at least 4.5:1 for normal text and 3:1 for large text (roughly 24px, or 19px bold) and interface components. Level AAA raises those to 7:1 and 4.5:1. Strong contrast helps people with low vision and anyone squinting at a phone in bright sunlight.
Tints, shades and colour harmonies
- Tints blend your colour with white and shades blend it with black, giving a full range for backgrounds, borders and hover states.
- Complementary colours face each other across the wheel for bold contrast.
- Analogous colours sit side by side and feel calm and unified.
- Triadic colours are spaced 120° apart for balanced yet lively schemes.
Need a colour from a photo or logo? Sample it with the Image Color Picker, or build background gradients with the CSS Gradient Generator.