HSL to HEX: #FB64B6

Also known as: Tailwind pink-400

Result

hsl(327.42 94.97% 68.82%) → #FB64B6

Values are shown at full precision, so converting back gives exactly #fb64b6. 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 = 327.42°, S = 94.97%, L = 68.82%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.59223, 0.00000, 0.32158)
    R = round((0.59223 + 0.39208) × 255) = 251
    G = round((0.00000 + 0.39208) × 255) = 100
    B = round((0.32158 + 0.39208) × 255) = 182
  6. 6. RGB → HEX

    #FB64B6

All formats

HEX
#fb64b6
RGB
rgb(251 100 182)
RGB (legacy)
rgb(251, 100, 182)
HSL
hsl(327.42 94.97% 68.82%) → hsl(327 95% 69%)
HWB
hwb(327 39% 2%)
OKLCH
oklch(0.718 0.202 349.7) · oklch(71.8% 0.202 349.7)
OKLab
oklab(0.718 0.198 -0.036)
Lab (D50)
lab(64.51 64.25 -12.86)
LCH (D50)
lch(64.51 65.52 348.68)
Display P3
color(display-p3 0.9143 0.4305 0.7026)
Linear sRGB
color(srgb-linear 0.9647 0.1274 0.4678)

Gamut: sRGB and Display P3

#FB64B6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.213 and Display P3 reaches 0.277; this color uses 95% of the sRGB chroma available.

CSS snippets

.element {
  color: #fb64b6;
  color: rgb(251 100 182);
  color: hsl(327 95% 69%);
  color: oklch(0.718 0.202 349.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.718 0.202 349.7);
}
/* arbitrary values */
class="text-[#fb64b6] bg-[oklch(0.718_0.202_349.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9143 0.4305 0.7026); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fb64b6 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

  • #FF78C9 · oklch(0.778 0.202 349.7) · ΔL +0.06
  • #E650A3 · oklch(0.658 0.202 349.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?