OKLCH to HEX: #FB64B6

Also known as: Tailwind pink-400

Result

oklch(0.71756 0.20167 349.700) → #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

    oklch(0.71756 0.20167 349.700)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.19842
    b = C·sin H = -0.03606
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.788420
    m′ = L − 0.1056·a − 0.0639·b = 0.698917
    s′ = L − 0.0895·a − 1.2915·b = 0.746374
  4. 4. cube

    l = 0.788420³ = 0.490086
    m = 0.698917³ = 0.341410
    s = 0.746374³ = 0.415786
  5. 5. LMS → linear sRGB

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

    R = 0.98432 × 255 = 251.00 → 251
    G = 0.39216 × 255 = 100.00 → 100
    B = 0.71373 × 255 = 182.00 → 182
  7. 7. 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?