🎨 Color Converter (HEX, RGB, HSL, CMYK)

Convert any colour between HEX, RGB, HSL and CMYK, check its contrast against white and black for accessible text (WCAG), and get complementary, analogous and triad palette colours.

Also known as: Color Calculator · Hex to Rgb · Rgb to Hex · Color Converter · Hsl to Hex · Cmyk Converter · Color Contrast Checker · Color Picker

Loading calculator…

⚑ Report a problem with this calculator

Your current inputs are sent with the report so we can reproduce it.

How to use the Color Converter (HEX, RGB, HSL, CMYK)

  1. Type a colour (#1D4ED8, rgb(29,78,216), hsl(224,76%,48%) or a name like coral) or use the picker.
  2. Read the colour in every format.
  3. Check contrast and copy palette colours.

How it's calculated

HSL comes from the RGB maximum, minimum and lightness; CMYK uses K = 1 − max(R,G,B)/255. Contrast ratio = (L1 + 0.05) ÷ (L2 + 0.05) using WCAG relative luminance.

Frequently asked questions

What contrast ratio is accessible?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1.
Is CMYK conversion exact?
Screen-to-print conversion depends on the printer profile; the CMYK shown is the standard device-independent approximation.
Is the Color Converter (HEX, RGB, HSL, CMYK) free?
Yes. The Color Converter (HEX, RGB, HSL, CMYK) on CalculatorSprint is completely free with no sign-up. Every calculation runs in your browser, so the numbers you enter are never sent to our servers.
How accurate is the Color Converter (HEX, RGB, HSL, CMYK)?
It uses the method described under “How it’s calculated” and keeps full precision internally, rounding only the displayed result.
Can I use the Color Converter (HEX, RGB, HSL, CMYK) on my phone or offline?
Yes. It works on any phone, tablet or computer. Install CalculatorSprint as an app from your browser menu (Add to Home Screen or Install app) and it keeps working offline.

Read more about the Color Converter (HEX, RGB, HSL, CMYK)

When to use the Color Converter (HEX, RGB, HSL, CMYK)

Use the Color Converter (HEX, RGB, HSL, CMYK) for convert colours between HEX, RGB, HSL and CMYK, check contrast and build a palette. It is one of 27 free everyday & education, and pairs well with the Aspect Ratio Calculator, Binary / Hex / Octal Converter, Percentage Calculator and GPA Calculator.

Tips for accurate results

Double-check your inputs and units, compare a few scenarios, and use the related calculators below to look at the problem from another angle.

Sources and review

Last reviewed

Sources:

Every calculator is checked against published reference values before release and re-reviewed when laws, rates or guidelines change. Read our methodology and editorial policy. Found a problem? Report it — we fix errors quickly.

Was this helpful?

More Everyday & Education

See all Everyday & Education →

Popular calculators

Results are estimates for information only. Calculations run privately in your browser.