🎨 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
How to use the Color Converter (HEX, RGB, HSL, CMYK)
- Type a colour (#1D4ED8, rgb(29,78,216), hsl(224,76%,48%) or a name like coral) or use the picker.
- Read the colour in every format.
- 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?
Is CMYK conversion exact?
Is the Color Converter (HEX, RGB, HSL, CMYK) free?
How accurate is the Color Converter (HEX, RGB, HSL, CMYK)?
Can I use the Color Converter (HEX, RGB, HSL, CMYK) on my phone or 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
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.
More Everyday & Education
- 📝 Test Score Calculator
- 🔤 Word & Character Counter
- 🇮🇳 CGPA to Percentage Converter
- 💡 Electricity Cost Calculator
- 🎲 Random Picker, Coin Flip & Dice
- ❤️ Love Calculator
- 🦃 Turkey Cooking Time Calculator
- 🌍 Carbon Footprint Calculator
- 🔢 Numerology Calculator
- ⛳ Golf Handicap Calculator
- 🍕 Pizza Calculator
- 📖 Reading Time Calculator
Popular calculators
Results are estimates for information only. Calculations run privately in your browser.