Skip to content
FizzKit

HEX to RGB

A focused view of the shared Color Converter for hex work: type a 3, 4, 6 or 8-digit hex code (with or without #), read the rgb()/rgba() value, and drive it the other way with red, green, blue and alpha sliders. Copy Tailwind arbitrary classes, CSS variables and every other format (HSL, OKLCH, LAB, P3…) from the same page, check contrast, or open the full converter for ramps and batch conversion.

Runs locally in your browser
Preview
#6366f1≈ mediumslateblue
on white
4.47:1 · AA Large
on black
4.70:1 · AA
99
102
241
100
Snippets
Luminance
0.1851
OKLCH lightness
58.5%
Hue
239°
Alpha
1
Named
≈ mediumslateblue
Perceived
light

How to use HEX to RGB

  1. 1Paste a hex code or pick a colour.
  2. 2Drag the R, G, B and alpha sliders to adjust it — the hex updates live.
  3. 3Copy the RGB value, Tailwind class or CSS variable.

About HEX to RGB

A focused view of the shared Color Converter for hex work: type a 3, 4, 6 or 8-digit hex code (with or without #), read the rgb()/rgba() value, and drive it the other way with red, green, blue and alpha sliders. Copy Tailwind arbitrary classes, CSS variables and every other format (HSL, OKLCH, LAB, P3…) from the same page, check contrast, or open the full converter for ramps and batch conversion.

HEX to RGB is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.

Frequently asked questions

Yes. 8-digit hex (e.g. #ff000080) maps to rgba(255, 0, 0, 0.5), and the alpha slider writes it back as 8-digit hex.