Example input
#0f766e
DataHub
Tools
Color Converter
Local-first
Convert HEX, RGB, and HSL colors with a compact local color report.
The converter accepts 3/4/6/8-digit HEX, legacy or modern RGB syntax, percentages, and HSL/HSLA with optional alpha. It validates channels and emits normalized HEX, RGB, HSL, and alpha values.
#0f766eHEX: #0f766e
RGB: rgb(15, 118, 110)
HSL: hsl(175, 77%, 26%)The tool handles sRGB-style HEX/RGB/HSL syntax; it does not convert wide-gamut color(), lab(), lch(), oklab(), or oklch() color spaces.
CSS Color 4 defines additional color spaces beyond the sRGB HEX/RGB/HSL subset implemented here.
Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.
Yes. HSL and HSLA with percentage saturation and lightness are supported.
Yes. RGBA, HSLA, and 4/8-digit HEX alpha are reported and encoded in output HEX.
Yes, including percentage channels.
Yes. Invalid RGB, percentage, HSL, or alpha ranges produce an error.