Color Converter: HEX to RGB, HSL, HSV & CMYK
Indigo (approx.)
HEX
#818cf8
RGB
rgb(129, 140, 248)
HSL
hsl(234, 89%, 74%)
HSV
hsv(234, 48%, 97%)
CMYK
cmyk(48%, 43%, 0%, 3%)
/* CSS Variables */
:root {
--color-primary: #818cf8;
--color-primary-rgb: 129, 140, 248;
--color-primary-hsl: 234, 89%, 74%;
}
Color Palettes
Complementary
Analogous
Triadic
Shades & Tints Generator
Tints (Lighter)
Shades (Darker)
WCAG Contrast Checker (Accessibility)
White Text
2.14:1
FAIL
Black Text
9.81:1
PASS AAA
Color Converter & Formats Explained
Using a reliable color converter is essential for web designers and developers. Our tool lets you instantly convert colors between all standard digital models: HEX, RGB, HSL, HSV, and CMYK. Whether you need to translate an rgb to hex code for a CSS file, or you're adjusting saturation via HSL, understanding how these models work improves your workflow.
Frequently Asked Questions
How does a color converter work?
A color converter translates a color value from one digital model to another. For example, it recalculates the hexidecimal representation of red, green, and blue light into percentages used by HSL (Hue, Saturation, Lightness) or CMYK (Cyan, Magenta, Yellow, Key) inks.
How do I convert HEX to RGB?
To convert HEX to RGB, take the 6-character hex code and split it into three pairs. Convert each base-16 pair to decimal to get the Red, Green, and Blue values (0-255). Our tool automates this instantly.
What is the formula to convert RGB to HEX?
To convert RGB to HEX, convert each decimal value (Red, Green, Blue) into a two-digit hexadecimal number (base-16), then combine them in order, prefixed with a hashtag.
Why use a color picker online instead of native design software?
Using a color picker online is fast, requires no installation, and often provides instant CSS code outputs and WCAG accessibility contrast scores which native design tools sometimes lack.
What is the difference between HSL and HSV?
HSL stands for Hue, Saturation, and Lightness, while HSV stands for Hue, Saturation, and Value. While Hue is identical in both, HSL models lightness symmetrically (100% is pure white), whereas HSV models value as brightness (100% can be a pure vibrant color).