Colour Converter
Convert between HEX, RGB, HSL, HSV and CMYK.
HEX
#4F46E5
RGB
rgb(79, 70, 229)
HSL
hsl(243.4, 75.4%, 58.6%)
HSV
hsv(243.4, 69.4%, 89.8%)
CMYK
cmyk(65.5%, 69.4%, 0%, 10.2%)
HEX with alpha
#4F46E5
| Against | Contrast ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 6.29:1 | Pass | Pass | Fail |
| Black | 3.34:1 | Fail | Pass | Fail |
Tint and shade scale
What does Colour Converter do?
Enter a colour in any common notation and get every other format at once, with a live swatch, a contrast check against black and white, and generated tints and shades.
How to Use Colour Converter
- 1Enter a colourHEX, rgb(), hsl() or a CSS colour name.
- 2Read every formatAll notations update together.
- 3Copy what you needOne tap per format.
Key Features
- Every format converted at once from any input notation
- Named CSS colours accepted as input
- Alpha channel supported in HEX, RGBA and HSLA
- WCAG contrast ratio against black and white
- Tints, shades and a full 50–950 scale generated from the colour
Frequently Asked Questions
How do I convert HEX to RGB?
Split the six digits into three pairs and read each as a hexadecimal number. #4F46E5 is 4F = 79, 46 = 70, E5 = 229, giving rgb(79, 70, 229).
What is HSL good for?
Adjusting colours predictably. Hue sets the colour, saturation its intensity, lightness how light or dark it is. Building a palette by varying lightness at a fixed hue is far easier in HSL than in HEX.
Is the CMYK conversion accurate for printing?
It is a straightforward mathematical conversion, which is fine for a rough idea. Real print work needs an ICC profile conversion for the specific press and paper, since CMYK cannot reproduce every RGB colour.
What is the difference between HSL and HSV?
They differ in the third component. HSL lightness runs from black through the pure colour at 50% to white at 100%. HSV value runs from black to the pure colour at 100% and never reaches white without dropping saturation.
Explore Related Workflows & Utilities
More tools in Developer Tools and related problem-solving tools
Direct Workflow Extensions
Convert a hex colour code to RGB values.
Convert RGB values to a hex colour code.
Convert RGB values to hue, saturation and lightness.
Convert hue, saturation and lightness to RGB and hex.
Build harmonious colour palettes from one base colour.
Pick any colour from an image and get HEX, RGB and HSL.
Complementary Utilities across Categories
Topical Deep Dives & Guides
Popular Related Searches for Colour Converter
Input is processed in your browser and never transmitted. That said, treat any web page as untrusted for live production secrets — rotate anything you paste anywhere.
Related Tools
HEX to RGB Converter
Convert a hex colour code to RGB values.
RGB to HEX Converter
Convert RGB values to a hex colour code.
RGB to HSL Converter
Convert RGB values to hue, saturation and lightness.
HSL to RGB Converter
Convert hue, saturation and lightness to RGB and hex.