Skip to content
Tool Dock

Color Converter

Convert any CSS colour between HEX, RGB, HSL, HSB and CMYK, with contrast checks.

0 characters

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste a colour in any form: #1e90ff, rgb(30, 144, 255), hsl(210, 100%, 56%) or a name like dodgerblue.
  2. Run it to see the same colour in HEX, RGB, HSL, HSB and CMYK.
  3. Copy the format you need and check the contrast ratios before using it for text.

Why Tool Dock

  • FastEverything runs on your own device, so there is no queue and no waiting for uploads.
  • PrivateYour files and text never leave the browser. Close the tab and they are gone.
  • Batch friendlyDrop several files at once and download each result, or all of them together.

Questions

Which colour formats are accepted?

3, 4, 6 and 8-digit hex with or without #, rgb() and rgba() in numbers or percentages, hsl() and hsla(), and all 148 CSS colour names.

What do the contrast ratios mean?

WCAG requires at least 4.5:1 between text and background (3:1 for large text). The two ratios show how this colour performs as text on white and on black.

Is CMYK exact?

CMYK here is the simple conversion used by most online tools. Print colours depend on the paper and ink profile, so treat it as a starting point.

All tools