Color Picker & Converter

Pick any color and instantly convert between HEX, RGB, and HSL formats.

r59
g130
b246
HEX#3B82F6
RGBrgb(59, 130, 246)
HSLhsl(217, 91%, 60%)
CSS Variable--color: #3b82f6;

Frequently Asked Questions

HEX is a hexadecimal representation of a color (#RRGGBB). RGB specifies color using Red, Green, and Blue channels (0-255 each). HSL uses Hue (0-360°), Saturation (0-100%), and Lightness (0-100%). All three can represent the same colors, just in different formats.
HEX is the most common in web development and design tools. RGB is useful when you need to manipulate individual color channels or use rgba() for transparency. HSL is more intuitive for adjusting colors — changing hue shifts the color, saturation controls vibrancy, and lightness controls brightness.
A CSS custom property (e.g., --color: #ff0000;) lets you store a value and reuse it throughout your stylesheets with var(--color). This makes it easy to maintain consistent colors and create themes.
Ensure sufficient contrast between text and background colors. WCAG 2.1 recommends a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Use tools that check contrast ratios to verify accessibility.
Yes. HEX supports 8-digit notation (#RRGGBBAA), RGB has rgba(r, g, b, alpha), and HSL has hsla(h, s%, l%, alpha). The alpha channel ranges from 0 (fully transparent) to 1 (fully opaque).