Browser-only utility

Convert between HEX, RGB and HSL colors.

Paste a HEX value, rgb(...) or hsl(...) color and get the equivalent representations. Ideal for styling components and design handoff.

Private browser workspace — input is processed on your device. Maximum input: 1,000,000 characters.

Initializing tool…

How it works

Use HEX / RGB / HSL Converter locally

The converter parses an opaque six-digit or three-digit HEX value, CSS integer RGB channels, or CSS HSL percentages, then converts them using standard color math.

Important limitations

Alpha transparency, wide-gamut colors and named CSS colors are not supported. Some RGB to HSL values are rounded for display.

Processing runs on your device. Keep source content when exact formatting or compatibility matters.

Practical walkthrough

Translate a design color into CSS values

A designer shares a HEX value while the UI implementation needs RGB or HSL representation.

HEX color

#5c55f5

Expected behavior

The 6-digit HEX input represents RGB channels 92, 85 and 245. HSL is computed from those channels and rounded for display.

Check before using the output

This tool handles opaque HEX, integer RGB and percentage HSL. It does not handle alpha channels, named colors or wide-gamut color spaces.

Next step: Inspect more browser-based text utilities.