HSL to HEX: #A800B7

Also known as: Tailwind fuchsia-700

Result

hsl(295.08 100.00% 35.88%) → #A800B7

Values are shown at full precision, so converting back gives exactly #a800b7. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    H = 295.08°, S = 100.00%, L = 35.88%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.71760
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.65876   (H / 60° = 4.9180, sector 4)
  4. 4. m

    m = L − C / 2 = 0.00000
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.65876, 0.00000, 0.71760)
    R = round((0.65876 + 0.00000) × 255) = 168
    G = round((0.00000 + 0.00000) × 255) = 0
    B = round((0.71760 + 0.00000) × 255) = 183
  6. 6. RGB → HEX

    #A800B7

All formats

HEX
#a800b7
RGB
rgb(168 0 183)
RGB (legacy)
rgb(168, 0, 183)
HSL
hsl(295.08 100.00% 35.88%) → hsl(295 100% 36%)
HWB
hwb(295 0% 28%)
OKLCH
oklch(0.523 0.246 323.8) · oklch(52.3% 0.246 323.8)
OKLab
oklab(0.523 0.199 -0.145)
Lab (D50)
lab(40.55 70.13 -51.86)
LCH (D50)
lch(40.55 87.22 323.52)
Display P3
color(display-p3 0.6030 0.1177 0.6928)
Linear sRGB
color(srgb-linear 0.3916 0.0000 0.4735)

Gamut: sRGB and Display P3

#A800B7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.246 and Display P3 reaches 0.267; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #a800b7;
  color: rgb(168 0 183);
  color: hsl(295 100% 36%);
  color: oklch(0.523 0.246 323.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.523 0.246 323.8);
}
/* arbitrary values */
class="text-[#a800b7] bg-[oklch(0.523_0.246_323.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6030 0.1177 0.6928); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a800b7 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #BC2ACB · oklch(0.583 0.246 323.8) · ΔL +0.06
  • #9400A3 · oklch(0.463 0.246 323.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?