Color Converter

Convert colors between HEX, RGB, HSL, and HSV. Click any value to copy.

HEX → RGB/HSL/HSV
RGBrgb(79, 140, 255)
HSLhsl(219, 100%, 65%)
HSVhsv(219, 69%, 100%)
HEX#4f8cff
219
100
65
RGBrgb(79, 140, 255)
HEX#4f8cff
HSLhsl(219, 100%, 65%)
How to Use

1. Select a mode — HEX → RGB/HSL/HSV or HSL → RGB/HEX. 2. Type or paste a hex color, or drag the HSL sliders. 3. All conversions update live. 4. Click any converted value to copy it to your clipboard.

Frequently Asked Questions

What color formats are supported?

This tool supports conversion between HEX, RGB, HSL, and HSV formats. The HEX mode converts to all three other formats simultaneously. The HSL mode gives you sliders to fine-tune hue, saturation, and lightness.

When should I use HEX, RGB, HSL, or HSV?

Use HEX when you are copying colors into CSS, design tokens, or brand guidelines. Use RGB when you need channel values for code, image tools, or accessibility calculations. HSL is easier for adjusting a color by eye because hue, saturation, and lightness are separated. HSV is useful when you are working with picker-style interfaces where brightness and saturation need to change independently.

What is the contrast ratio shown?

The contrast ratio is calculated using the WCAG 2.1 relative luminance formula. It shows the contrast between your color against white and black backgrounds. A ratio of 4.5:1 or higher meets AA accessibility standards for normal text.

How can I use the converted values in a design workflow?

Paste a brand color or sample color into the HEX field, then copy the RGB or HSL value that best matches your next step. Developers usually copy HEX or RGB into CSS variables, while designers often use HSL to create lighter or darker variants. The live preview helps confirm that the converted value still matches the color you intended.

Is my data sent to any server?

No. All color conversion happens entirely in your browser. Your data never leaves your device.

Related Tools

Random Number Generator Text to Binary Word Frequency Counter