Color Converter
Convert any CSS colour between HEX, RGB, HSL, HSB and CMYK, with contrast checks.
0 characters
Output
or press ⌘/Ctrl + EnterYour result appears here.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
How to use it
- Paste a colour in any form: #1e90ff, rgb(30, 144, 255), hsl(210, 100%, 56%) or a name like dodgerblue.
- Run it to see the same colour in HEX, RGB, HSL, HSB and CMYK.
- 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.
Related tools
- Image Color PickerClick any pixel of an image to get its HEX, RGB and HSL colour, plus the main palette.
- Security Headers AnalyzerPaste a site’s response headers to grade HSTS, CSP, clickjacking protection and more.
- security.txt Generator & ValidatorCreate a valid security.txt for your site, or check an existing one against RFC 9116.
- Base64 DecodeTurn Base64 back into text, images or files, right in your browser.
- Base64 EncodeTurn text or any file into Base64, right in your browser.
- BIMI CheckerCheck whether your brand logo can show next to your emails: BIMI record, logo, certificate and DMARC.