HEX → Color
Convert HEX color codes to RGB and HSL values instantly with real-time validation, synchronized color picking, and live preview.
Input HEX Code
Type 3 or 6-digit hex or pick visually
Live Conversion
Real-time RGB, HSL & luminance breakdown
Copy Formats
One-click copy RGB, HSL, CSS or swatches
Hexadecimal Bit Depth
Hex color codes represent 8-bit unsigned integers for Red, Green, and Blue channels. Values range from 00 (0) to FF (255), unlocking 16,777,216 distinct digital display colors.
WCAG Luminance & Contrast
Perceived brightness uses the YIQ weighted formula (0.299R + 0.587G + 0.114B). Human eyes are most sensitive to green wavelengths, making accurate luminance calculations vital for accessibility.
Shorthand Syntax Rules
3-digit hex strings (e.g. #F0C) are automatically expanded to 6-digit notation (#FF00CC) by duplicating each character, maintaining exact channel parity in modern CSS and Web standards.