Convert colors between every common format
Designers, developers and marketers constantly move colors between tools that speak different languages: CSS wants HEX or HSL, a brand guide lists RGB and CMYK, and a design app shows HSB. This color converter takes a color in any of these formats and shows it in all the others at once, with a one-click copy for each. It also checks text contrast for accessibility and generates a scale of tints and shades.
Features
- Any input format: HEX (3, 4, 6 or 8 digits), RGB/RGBA, HSL/HSLA, HSV/HSB, CMYK, plain number triples and CSS color names.
- All outputs at once: HEX, RGB, HSL, HSV and CMYK, each with a copy button.
- Transparency support — alpha values are kept in HEX8, RGBA and HSLA.
- Native color picker for choosing a color visually.
- WCAG contrast checker against white and black, with AA results for normal and large text.
- Tints and shades from 10% to 90% lightness; click any swatch to load it.
Color formats explained
- HEX —
#RRGGBBin hexadecimal, the most common format in web design. An optional fourth pair sets transparency. - RGB — red, green and blue from 0 to 255; how screens actually create colors.
- HSL — hue (the position on the color wheel), saturation (intensity) and lightness. Easy to adjust by hand: change only the lightness to get lighter or darker versions of the same color.
- HSV / HSB — hue, saturation and value (brightness), used by most color pickers in design tools.
- CMYK — cyan, magenta, yellow and key (black) ink percentages used in print.
Example
The sky blue #0EA5E9 is rgb(14, 165, 233), hsl(199, 89%, 48%), hsv(199, 94%, 91%) and roughly cmyk(94%, 29%, 0%, 9%). Its contrast against white is about 2.8:1 — fine for large headings and icons, but too low for body text, which needs 4.5:1. On black it reaches about 7.6:1, comfortably passing.
Tips for working with color
- Build palettes in HSL. Keep hue and saturation fixed and vary lightness to create consistent button states, backgrounds and borders.
- Check contrast early. Many brand colors are too light for text on white; use a darker shade from the scale for text and the original for accents.
- Don't rely on color alone to convey meaning — add icons or labels for people with color vision deficiencies.
- Expect print to differ. Bright RGB colors, especially vivid blues and greens, often look duller in CMYK.
Working with images too? The Image Converter changes formats between JPG, PNG and WebP. To encode a small image or icon for CSS, use Base64.