Convert Colors
Convert between HEX, RGB, HSL, and CMYK.
Contrast ratio
Sample Text
on white
Sample Text
on black
About Convert Colors.
Convert Colors Between HEX, RGB, HSL, HSV, CMYK, and LAB
Enter a color in any common format and CipherForces shows it in every other format simultaneously. Great for designers who jump between Figma (HSL), CSS (HEX/RGB), and print workflows (CMYK/LAB).
Common Use Cases
- CSS writing: Convert a designer-provided HSL value to HEX for CSS.
- Print prep: Convert a screen RGB color to CMYK before sending to print.
- Design system consistency: Match a Figma HSL to its Tailwind-compatible HEX.
- Accessibility testing: Convert to LAB to reason about perceptual color distance.
Key Features
- Six formats side-by-side: HEX, RGB, HSL, HSV, CMYK, CIELAB.
- Color picker: Use the native color input as a visual picker.
- Copy any format: One-click copy with format prefix (e.g.
rgb(…)). - Contrast hint: Shows the WCAG contrast ratio against pure white and black.
Privacy: All conversion is mathematical and runs locally. No network.
Frequently asked questions.
How do I convert a HEX color to RGB?
Paste your HEX value into the converter, like #3A7BD5, and the RGB equivalent appears instantly alongside HSL and CMYK. Everything runs in your browser, so you can copy the format you need right away. Edit any field and the others update automatically as you type.
Is my color data uploaded to a server when I use this tool?
No. The Convert Colors tool runs entirely in your browser using JavaScript, so your color values never leave your device. Nothing is sent to or stored on a server, and no signup is required. You can even use it offline once the page has finished loading.
Can I convert between HEX, RGB, HSL, and CMYK in one place?
Yes. This tool handles all four formats at once. Enter a color in any of HEX, RGB, HSL, or CMYK, and the other three are calculated and displayed together. That makes it easy to grab the exact format your design software, CSS, or print workflow needs.
Why do my CMYK print colors look different from RGB on screen?
RGB mixes light for screens, while CMYK mixes ink for print, so the two cover different ranges of color. Some bright screen colors cannot be reproduced exactly in CMYK. The converter shows the closest CMYK values, helping you preview how a color may shift before printing.
How to use Convert Colors.
Enter your input
Type or paste what you want to work with.
Choose settings
Adjust the options for what you need.
Get instant results
Your result updates right on the page.
Related dev tools.
Privacy-first tools that work everywhere.
Need more than a tool?
Custom websites and web apps that you own — from $799 one-time.
Explore all 83 tools