Color Converter
Convert a brand colour between HEX, RGB, HSL, HSV, CMYK and OKLCH – and find the nearest CSS colour name.
Formats
- HEX –
#E5338B, the usual format in CSS and design tools. - RGB – red, green and blue from 0 to 255.
- HSL and HSV – hue in degrees plus saturation and lightness or value; easy to adjust by hand.
- CMYK – cyan, magenta, yellow and black ink for print.
- OKLCH – a modern CSS format where equal steps look equally different to the eye.
Example: #E5338B is rgb(229, 51, 139), hsl(330, 77%, 55%) and cmyk(0%, 78%, 39%, 10%); the nearest CSS name is deeppink, and on white it reaches a contrast of only 4.05:1 – too low for body text.
CMYK and Pantone
Screens mix light, presses mix ink, so there is no single exact CMYK value for a screen colour. The converter gives a simple conversion without a colour profile. For brand print work, ask your printer for values in their profile (in Europe usually FOGRA39 or FOGRA51, in the USA GRACoL). Pantone colours are licensed and cannot be converted exactly – use the official Pantone guides.
Brand guidelines
List each brand colour in HEX for the web, RGB for screens, CMYK for print and the Pantone reference if you have one – and note which text colours pass contrast on it.
Frequently asked questions
How do I convert HEX to RGB?
Split the six digits into three pairs and read each pair as a hexadecimal number: #E5338B is 229, 51 and 139.
Is the CMYK value exact?
No – it is a profile-free conversion. Ask your printer for values in their colour profile.
Can I convert to Pantone?
Not exactly – Pantone colours are licensed inks; use the official Pantone guides to find the closest match.