Hex & RGB Color Space Converter

Instantly convert color values between Hexadecimal strings, RGB tuples, HSL percentages, and CSS-ready formats with live color previewing.


Ready
Awaiting input...
Format: #10b981 | RGB(16, 185, 129)

Color Space Reference Guide

Hexadecimal (#RRGGBB)

Base-16 notation widely used in CSS and web design. Each color channel ranges from 00 to FF (0 to 255).

RGB Model

Additive color model combining Red, Green, and Light Blue channels on a scale from 0 to 255 per component.

HSL Model

Hue, Saturation, and Lightness representation providing a more intuitive approach for human color selection.

Frequently Asked Questions (FAQ)

Shorthand hex codes like #0f9 expand each character to double (equivalent to #00ff99), simplifying code representation for common values.

RGB components are first normalized to the range $[0, 1]$. By finding the minimum and maximum values among red, green, and blue, lightness is calculated as the midpoint, and hue/saturation are derived from chromaticity differences.