About the Color Code Converter
This tool converts common color formats in your browser. You can paste HEX, RGB, HSL, HSV, CMYK or a CSS name. Results update as you type and show HEX, RGB, HSL, HSV, CMYK, RGB normalized to 0 to 1, and the closest CSS name. The tool runs locally in your browser, so nothing is uploaded to a server once the page loads. You can copy results, save a link that reopens with your values, or download the swatch. CMYK uses a plain math conversion only, so printed colors may differ by printer, ink and paper. The closest CSS name uses the CIEDE2000 difference in CIE Lab, which is more accurate than simple RGB distance.
How to use it
- 1Paste or type a color in HEX, RGB, HSL, HSV, CMYK or a CSS name.
- 2Edit numbers directly; the results update instantly as you type.
- 3Copy any format or use the share link to reopen with the same values.
- 4Download the color swatch or save the values for your project.
Worked example
Input: #FF8800. Results: HEX: #FF8800; RGB: rgb(255,136,0); HSL: hsl(32,100%,50%); HSV (HSB): hsv(32,100%,100%); CMYK: cmyk(0%,47%,100%,0%); RGB 0 to 1: (1.000,0.533,0.000); Closest CSS name: DarkOrange (#FF8C00).
How it works
HEX is the red, green and blue values (0 to 255) written in base 16HSL and HSV come from the largest and smallest of the three values: lightness L = (max + min) / 2, value V = max, and the hue angle depends on which channel is largestCMYK uses the simple screen formula K = 1 - max, C = (1 - R - K) / (1 - K) and so on, with no printer colour profileThe closest CSS name is found with the CIEDE2000 colour difference in CIE LabSource: W3C CSS Color Module Level 4MDN Web Docs - Color format converter and guides. Last checked 12 November 2026.
What it is good for
- See all major formats at once: HEX, RGB, HSL, HSV, CMYK and normalized RGB.
- Runs fully in your browser so nothing is uploaded after page load.
- Copy any result or share a link that reopens with your values.
- CMYK is a plain math conversion. Printed output varies with printer and profile.
- The tool does not perform color-managed conversions with ICC printer profiles.
Questions people ask
How do I convert HEX to RGB?
Split HEX into RRGGBB pairs and convert each from base 16 to decimal. For example #FF8800 becomes rgb(255,136,0). See W3C and MDN for hex notation details.
Will CMYK here match my printed result?
No. This CMYK is a simple screen-to-print math conversion. Printed colors depend on printer, ink and paper. Ask your printer for their ICC profile for exact matches.
Can I include alpha in a HEX value?
Yes. CSS supports 8-digit hex like #RRGGBBAA or 4-digit shorthand. Alpha is round(alpha*255) written as two hex digits at the end. See W3C CSS Color Level 4.
Does the tool send my colors to a server?
No. After the page loads the conversion runs in your browser. Nothing is uploaded unless you explicitly use a download or sharing feature.
How is the closest CSS name chosen?
The tool converts colors to CIE Lab and uses the CIEDE2000 color difference. That gives a closer perceptual match than simple RGB distance.
Can I edit HSL values to change hue or lightness?
Yes. HSL is shown so you can change hue, saturation and lightness directly. Results update instantly and show new HEX and RGB values.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.