Color Converter

Translate a colour between every format you need in one place — HEX and RGB for the web, HSL for readable lightness tweaks, HSV for colour pickers, and CMYK for a print handoff. Type a value into any field and the rest update live beside a large swatch, so you can see exactly what you are working with. Shorthand hex, percentage channels, alpha, and the CSS named colours all parse, and every format stays in sync because they are all derived from one canonical value rather than recomputed from whichever box you touched last — which is what stops a colour drifting as you move it between formats. It is pure arithmetic in your browser: nothing is uploaded, and it keeps working offline.

Colour models and what they are for

ModelComponentsBest for
HEXRed, green, blue as hex pairsCSS, design handoff, the web's default notation
RGBRed, green, blue 0–255Canvas, shaders, image code
HSLHue, saturation, lightnessTweaking lightness and building tint or shade ramps
HSVHue, saturation, valueColour pickers and design tool eyedroppers
CMYKCyan, magenta, yellow, blackPrint — approximate on screen

When to use it

  1. Convert a brand HEX into RGB values for a canvas or shader.
  2. Switch to HSL so you can lighten or desaturate a colour predictably.
  3. Approximate CMYK for a print handoff before sending artwork to a printer.
  4. Turn a colour picker's HSV reading into something you can paste into CSS.
  5. Add an alpha channel to a solid colour and get the HEX8 or rgba() form.

How to Use

  1. Enter a colour in any field — HEX, RGB, HSL, HSV or CMYK — or use the colour picker.
  2. Read the same colour in every other format, with a live swatch beside it.
  3. Drag the alpha slider if you need transparency.
  4. Copy the format you need with the button next to it.

Features

  1. Two-way conversion across HEX, RGB, HSL, HSV and CMYK
  2. Alpha channel with HEX8, rgba() and hsla() output
  3. All 148 CSS named colours recognised and reported
  4. Large live swatch over a checkerboard so transparency is visible
  5. Drift-free round-tripping from a single canonical value
  6. 100% client-side — nothing is uploaded

FAQs

Is the CMYK conversion exact?

No, and no on-screen converter's is. This uses the standard device formula, which is a close approximation. True print colour depends on the ICC profile, the press, the ink and the paper, so treat the CMYK values here as a starting point and confirm with your printer's proof.

Does it support transparency?

Yes. Set the alpha slider and you get the 8-digit HEX and rgba()/hsla() forms. Alpha is preserved across every format that can express it; HSV and CMYK have no alpha component, so they show the colour only.

Can I type shorthand HEX?

Yes — 3, 4, 6 and 8 digit HEX are all accepted, with or without the leading hash. The 3 and 4 digit forms expand by doubling each digit, so #abc is the same colour as #aabbcc, exactly as CSS defines it.

Does it recognise CSS colour names?

All 148 of them, including the awkward ones like rebeccapurple, and both the gray and grey spellings. Type a name into the HEX field and it resolves; when a colour matches a named one exactly, the name is shown alongside it.

Why do other converters change my colour slightly?

Because they recompute each field from the last one you edited, so every hop through HSL or HSV rounds the value again and the error accumulates. This tool keeps one canonical RGBA value and derives every field from it, so a colour survives any amount of switching between formats unchanged.

Is anything uploaded?

No. Every conversion is local arithmetic. No colour, palette, or anything else you enter is sent to a server, logged, or stored.

Technical Details

Whatever you type is normalised to a single canonical RGBA value, and every other format is derived from that one source. Keeping one source of truth is what prevents the rounding drift you get in converters that recompute each field from whichever box was edited last — round-trip a colour through HSL and back a few times in those and it slowly changes. HEX parsing accepts the 3, 4, 6 and 8 digit forms, doubling each nibble for the short ones; rgb(), hsl(), hsv() and cmyk() accept both comma and space separated arguments, percentage or absolute channels, and a slash-delimited alpha. HSL and HSV are derived with the standard hexcone conversions and CMYK with the naive device formula, which is an on-screen approximation: real print output depends on an ICC profile, the press and the paper. The 148 CSS named colours are resolved from a bundled lookup table. All of it is arithmetic running in your browser.

Color Tools

Color Tools

  • Contrast Checker
  • Color Mixer
  • Color Palette Generator
  • Color Shades & Tints Generator
  • Tailwind Color Palette Generator
  • Color Blindness Simulator