Color Code Converter

Slate Blue
Closest named color
Luminance: 14.7%
Shades & Tints
CSS Variables

How to Use

1

Click the color swatch to open the visual picker

2

Or type a code directly into any format field

3

All formats update instantly. Copy any value.

Features

5 Color Formats

Convert between HEX, RGB, HSL, HSV, and CMYK as you type.

Shades & Tints

Automatically generates 9 shades and tints for building palettes.

CSS Variables

Generates ready-to-use CSS custom properties for all color formats.

Contrast Ratio

Shows WCAG contrast ratios for white and black text.

Use Cases

FAQ

What is the difference between HEX, RGB, and HSL?

HEX is a hex color code for HTML/CSS. RGB uses red, green, blue values (0–255). HSL uses hue, saturation, and lightness—more intuitive for designers.

How do I convert HEX to RGB?

Split the hex into three pairs and convert each from base-16 to base-10. For example, #FF5733 → FF=255, 57=87, 33=51 → rgb(255, 87, 51).

What is CMYK used for?

CMYK is used in print design. Web design uses RGB/HEX, but print requires CMYK. This tool helps convert between the two when preparing designs for print.

What is a WCAG contrast ratio?

WCAG defines minimum contrast ratios for accessibility. AA requires 4.5:1, AAA requires 7:1. This tool calculates contrast against white and black backgrounds.

𝕏 Share Facebook LinkedIn Reddit
Used 0 times on this device

More Free Tools