Example: one brand blue, six formats
A marketing assistant has a client's brand blue as #1E6FA8 from the website and needs it for an email template, a presentation and a printed leaflet.
Typing the HEX code gives every format at once. The tool also says the closest named CSS colour is steelblue, which is near but not the same, so the code itself should be used everywhere.
#1E6FA8
HEX #1E6FA8 RGB rgb(30, 111, 168) HSL hsl(205, 70%, 39%) HSV hsv(205, 82%, 66%) CMYK cmyk(82%, 34%, 0%, 34%) Decimal 1994664
Converting a colour
Enter the colour
Type a HEX code, an
rgb()orhsl()value, or a CSS name such as teal, or open the colour picker beside the box.Read the swatch
A large swatch shows the colour with its name, or the closest named colour if there is no exact match.
Copy a format
Every format sits on its own line with a button to copy just that value. Type a colour with transparency, such as rgba(30, 111, 168, 0.5), and an extra line with the alpha value is added.
Where each format is used
| Format | Looks like | Typical place |
|---|---|---|
| HEX | #1E6FA8 | Website builders, CSS, brand guides |
| RGB | rgb(30, 111, 168) | Office software, CSS, image editors |
| HSL | hsl(205, 70%, 39%) | CSS when making lighter or darker variants |
| HSV | hsv(205, 82%, 66%) | Colour pickers in many design apps |
| CMYK | cmyk(82%, 34%, 0%, 34%) | A starting point for print |
| Decimal | 1994664 | Some spreadsheets, scripts and older software |
Questions people ask
How do I convert HEX to RGB?
Split the six digits into three pairs and read each pair as a number from 0 to 255 in base 16. #1E6FA8 becomes 1E = 30, 6F = 111 and A8 = 168, so rgb(30, 111, 168). Typing the code here shows that instantly along with the other formats.
Can I enter a colour name instead of a code?
Yes. Any of the standard CSS colour names works, such as teal, navy or tomato. Teal, for example, converts to #008080 and rgb(0, 128, 128). If you type a code, the tool tells you which named colour is closest.
Which format should I give my web designer?
HEX is the most widely understood, and it is what most brand guides and website builders use. Include RGB too if the designer works in office software. For print, hand over the CMYK or Pantone values your printer confirms.
Where your data goes
Conversion is simple arithmetic carried out in your browser. Nothing you type is sent anywhere.
Checked against the tool on