Map Extract
Free tool

Colour code converter

Every tool wants colours in a different form: a website builder wants HEX, a slide deck wants RGB, a printer asks for CMYK. Type the colour once and copy whichever version you need.

Runs in your browser. Nothing you enter is uploaded.

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.

Input
#1E6FA8
Result
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

  1. Enter the colour

    Type a HEX code, an rgb() or hsl() value, or a CSS name such as teal, or open the colour picker beside the box.

  2. Read the swatch

    A large swatch shows the colour with its name, or the closest named colour if there is no exact match.

  3. 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

FormatLooks likeTypical place
HEX#1E6FA8Website builders, CSS, brand guides
RGBrgb(30, 111, 168)Office software, CSS, image editors
HSLhsl(205, 70%, 39%)CSS when making lighter or darker variants
HSVhsv(205, 82%, 66%)Colour pickers in many design apps
CMYKcmyk(82%, 34%, 0%, 34%)A starting point for print
Decimal1994664Some 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

Top