GROTON AI LogoGROTON AI
COLOR & BRANDING

HEX → Color

Convert HEX color codes to RGB and HSL values instantly with real-time validation, synchronized color picking, and live preview.

01

Input HEX Code

Type 3 or 6-digit hex or pick visually

02

Live Conversion

Real-time RGB, HSL & luminance breakdown

03

Copy Formats

One-click copy RGB, HSL, CSS or swatches

HEX Color InputSupports 3 & 6 Digits
🎨
#
Valid 6-digit HEX
Quick Presets
Converted Color Values
HEX#7866E6
RGB(R: 120, G: 102, B: 230)
rgb(120, 102, 230)
HSL(H: 248°, S: 72%, L: 65%)
hsl(248, 72%, 65%)
Live Color Preview#7866E6
Aa#7866E6Light text contrast
Channels120, 102, 230
Tone248°, 72%
LuminanceDark tone

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.