Skip to content

Converters

Color Converter: HEX, RGB, HSL, CMYK

Pick a color or type its code in any format, and see the equivalent in HEX, RGB, HSL and CMYK, with a contrast check for white and black text.

Free · no sign-up · runs in your browser · updated

Use Color Converter

HEX (#C9A96E), rgb(201, 169, 110), or hsl(39, 46%, 61%)

  • HEX#C9A96E
  • RGBrgb(201, 169, 110)
  • HSLhsl(39, 46%, 61%)
  • CMYKcmyk(0%, 16%, 45%, 21%)

Text contrast (WCAG)

White text on this color

2.24 : 1

✗ AA normal text✗ AA large text✗ AAA

Black text on this color

9.38 : 1

✓ AA normal text✓ AA large text✓ AAA

How to use Color Converter

  1. Pick a color with the color picker, or type a code such as #C9A96E, rgb(201, 169, 110) or hsl(39, 46%, 61%).

  2. Copy the format you need from the results list.

  3. Check the contrast ratio to make sure text on top of the color is readable.

How the color formats differ

HEX and RGB both describe the mix of red, green and blue that screens use; HEX simply writes it in hexadecimal. HSL (hue, saturation, lightness) is more intuitive for adjusting a color: move lightness to make it lighter or darker without changing the hue. CMYK is used for print.

The CMYK conversion here is a simple mathematical one. Print shops use different color profiles, so printed results can look slightly different from the screen.

Contrast and accessibility

The WCAG guidelines ask for a contrast ratio of at least 4.5 : 1 for normal text (level AA) and 7 : 1 for level AAA. Large text needs only 3 : 1 for AA. Checking contrast while you choose colors prevents designs that are hard to read.

Questions about Color Converter

How do I convert HEX to RGB?

Split the HEX code into three pairs of digits (red, green, blue) and convert each from hexadecimal to decimal. Example: #C9A96E becomes R 201, G 169, B 110.

Which formats can I type?

3-digit or 6-digit HEX (with or without #), rgb(r, g, b) and hsl(h, s%, l%). Comma or space separators are both accepted.

What does a 4.5:1 contrast ratio mean?

It compares the brightness of the text with its background. 4.5:1 is the minimum WCAG level AA ratio for normal text, so that most people can read it, including people with mild vision impairment.

Why does printed CMYK look different from the screen?

Screens emit light (RGB), while print uses ink on paper, which has a narrower range of colors. The conversion here does not use a print shop’s ICC profile.

Need more than tools?

We build websites, apps, and custom systems for your business.

These tools are only a small part of what Tipamedia can build. Tell us what you need and we will help you work out the next step.