OKLCH to HEX: #F472B6

Also known as: Tailwind v3 pink-400

Result

oklch(0.72527 0.17523 349.761) → #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

    oklch(0.72527 0.17523 349.761)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.17244
    b = C·sin H = -0.03115
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.786892
    m′ = L − 0.1056·a − 0.0639·b = 0.709056
    s′ = L − 0.0895·a − 1.2915·b = 0.750067
  4. 4. cube

    l = 0.786892³ = 0.487244
    m = 0.709056³ = 0.356485
    s = 0.750067³ = 0.421987
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.904682
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.168269
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.467789
  6. 6. linear → sRGB, × 255

    R = 0.95687 × 255 = 244.00 → 244
    G = 0.44706 × 255 = 114.00 → 114
    B = 0.71373 × 255 = 182.00 → 182
  7. 7. 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?