HSL to HEX: #F472B6

Also known as: Tailwind v3 pink-400

Result

hsl(328.62 85.53% 70.20%) → #F472B6

Values are shown at full precision, so converting back gives exactly #f472b6. 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 = 328.62°, S = 85.53%, L = 70.20%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.50976, 0.00000, 0.26660)
    R = round((0.50976 + 0.44712) × 255) = 244
    G = round((0.00000 + 0.44712) × 255) = 114
    B = round((0.26660 + 0.44712) × 255) = 182
  6. 6. RGB → HEX

    #F472B6

All formats

HEX
#f472b6
RGB
rgb(244 114 182)
RGB (legacy)
rgb(244, 114, 182)
HSL
hsl(328.62 85.53% 70.20%) → hsl(329 86% 70%)
HWB
hwb(329 45% 4%)
OKLCH
oklch(0.725 0.175 349.8) · oklch(72.5% 0.175 349.8)
OKLab
oklab(0.725 0.172 -0.031)
Lab (D50)
lab(65.77 56.14 -11.13)
LCH (D50)
lch(65.77 57.23 348.79)
Display P3
color(display-p3 0.8931 0.4763 0.7039)
Linear sRGB
color(srgb-linear 0.9047 0.1683 0.4678)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #f472b6;
  color: rgb(244 114 182);
  color: hsl(329 86% 70%);
  color: oklch(0.725 0.175 349.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.725 0.175 349.8);
}
/* arbitrary values */
class="text-[#f472b6] bg-[oklch(0.725_0.175_349.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8931 0.4763 0.7039); }
}

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

  • #FF85C9 · oklch(0.785 0.175 349.8) · ΔL +0.06
  • #DF5FA3 · oklch(0.665 0.175 349.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?