Color Converter: HEX to RGB, HSL, HSV and CMYK Online

Switch any colour between HEX, RGB, HSL, HSV and CMYK in an instant. Test text against a background for WCAG contrast, and create tints, shades and harmonious palettes from one starting colour.

  • HEX, RGB, HSL, HSV, CMYK
  • WCAG contrast check
  • Tints, shades and harmonies
Accepts HEX, RGB, HSL, HSV, CMYK and CSS color names.

Contrast checker (WCAG 2)

Large text sampleNormal body text sample, 15px.

Tints, shades & harmonies

Tints (mixed with white) and shades (mixed with black). Click any swatch to use it.
Complementary, analogous and triadic colors

How to use the Color Converter tool

  1. 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.
  2. Copy the right formatEvery notation is listed together; hit “Copy” beside the one your CSS, design app or printer needs.
  3. Test the contrastPick a text colour to get the WCAG ratio and see whether it passes AA and AAA.
  4. 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.

Frequently asked questions

How do I convert HEX to RGB?
Type or paste the HEX code, such as #0EA5E9, and the RGB value rgb(14 165 233) appears instantly along with HSL, HSV and CMYK.
What contrast ratio does text need?
For WCAG AA, normal text needs at least 4.5:1 and large text 3:1; for AAA, normal text needs 7:1.
Is the CMYK conversion accurate enough for print?
It’s a standard mathematical conversion and a sound starting point, but exact results depend on the printer, paper and colour profile.
How do HSL and HSV differ?
Both share hue and saturation. HSL uses lightness, where 100% is always white, while HSV uses value (brightness), where 100% is the brightest form of the colour.
Can I enter colours with transparency?
Yes. Use 8-digit HEX like #0EA5E980, or rgb() and hsl() with an alpha value such as rgb(14 165 233 / 50%).