Colour Tools

Color Converter

All tools

One color in, seven formats out, ready to copy individually or as a block.

How it works

Four simple steps

1

Enter a color

Paste HEX, rgb(), rgba(), hsl() or hsla(), or use the picker.

2

Formats are calculated

HEX, RGB, RGBA, HSL, HSV, OKLCH and CMYK update together.

3

Copy a single value

Click any table cell to copy that format.

4

Or copy them all

Copy All grabs every format as labeled lines.

Color Converter

About Color Converter

You are documenting a design system, and every token needs HEX for designers, HSL for the CSS variables and OKLCH for the new theme work. Paste the color once and copy all seven notations as a single block for the docs.

The converter reads three kinds of input in the HEX box: hex codes (3, 6 or 8 digits), rgb() or rgba(), and hsl() or hsla(), with either commas or spaces between values. A bare "r, g, b" list works too. From that it calculates HEX, RGB, RGBA, HSL, HSV, OKLCH and CMYK. Click any cell in the table to copy that value, or press Copy All to grab every format as labeled lines, which pastes neatly into a style guide or a pull request description.

HSV and CMYK appear only as outputs, so typing hsv() or cmyk() into the box will not be recognized. HSL and HSV values are rounded to whole numbers, which means converting an HSL value back can land a shade away from the original hex. Keep the hex or RGB value as your source of truth. CMYK is a plain mathematical conversion without a printer profile, a starting point for print work rather than a proof.

Need lighter and darker steps of the same color for a token scale? The tint and shade generator produces them. To browse the other color utilities, visit the color tools hub. Every conversion is computed in the page.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

No. Those two are output only. Enter the color as HEX, RGB or HSL to see its CMYK and HSV values.

HSL values are rounded to whole degrees and percentages, so a little precision is lost. Use the original HEX or RGB value as the reference.

Yes. Spaces and commas both work as separators, and the alpha after a slash can be a decimal or a percentage.

View more FAQs

Related tools

View all

Color Picker

Pick and convert colors.

Open

HEX to RGB

Convert HEX to RGB.

Open

RGB to HEX

Convert RGB to HEX.

Open

Palette Generator

Generate color palettes.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools