#→

HEX ↔ RGB Converter

client-side

Convert between HEX, RGB, RGBA, HSL, HSLA — single or batch. Paste any color format, get all formats instantly.

Convert to
Input ColorHEX · RGB · RGBA · HSL · HSLA
All Formats
RGB—
RGBA—
HSL—
HSLA—
HEX—
HEX+A—
CSS Vars—
Tailwind—
🔄
Any Format In
Paste HEX (#RGB, #RRGGBB, #RRGGBBAA), rgb(), rgba(), hsl(), or hsla() — auto-detected.
📋
8 Formats Out
Instantly get RGB, RGBA, HSL, HSLA, HEX, HEX+Alpha, CSS variables, and Tailwind class.
📦
Batch Conversion
Paste a list of colors — one per line — and convert them all at once with Copy All.