Home › Developer Tools

Color Code Converter

Type any format, e.g. #2F6B3F, rgb(47,107,63), hsl(136 39% 30%) or a color name.

Files are processed in your browser and never uploaded

Text contrast (WCAG 2.x)

Lighter & darker

Every color format at once

Moving a color from a design mockup to the web, from a website to print, or a brand color into a document means converting between HEX, RGB, HSL and CMYK. Type a color in any format and see all formats together. Use the color picker to choose visually, and click Copy next to any value.

Formats

Contrast check

Contrast between the color and white or black text is calculated with the WCAG 2.x formula. Normal text needs 4.5:1 (AA), the stricter level 7:1 (AAA), and large text 3:1. It tells you instantly which text color reads better on a button or banner.

“Lighter & darker” lists shades that keep the hue and saturation and change lightness in 10% steps — useful for hover states or pale backgrounds. To build a full color scheme, use Color Palette Generator.

Frequently asked questions

What about transparency (alpha)?

rgba and hsla are accepted, but only the color is read; alpha is ignored.

Do color names work?

Yes — every CSS color name your browser knows (red, navy, rebeccapurple…).

Can it convert to Pantone?

No. Pantone is a licensed color system.

Related tools