OKLCH to HEX: #E879F9

Also known as: Tailwind v3 fuchsia-400

Result

oklch(0.74772 0.20697 322.160) → #E879F9

Values are shown at full precision, so converting back gives exactly #e879f9. 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.74772 0.20697 322.160)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.16345
    b = C·sin H = -0.12697
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.785101
    m′ = L − 0.1056·a − 0.0639·b = 0.738573
    s′ = L − 0.0895·a − 1.2915·b = 0.897071
  4. 4. cube

    l = 0.785101³ = 0.483924
    m = 0.738573³ = 0.402885
    s = 0.897071³ = 0.721905
  5. 5. LMS → linear sRGB

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

    R = 0.90980 × 255 = 232.00 → 232
    G = 0.47451 × 255 = 121.00 → 121
    B = 0.97647 × 255 = 249.00 → 249
  7. 7. RGB → HEX

    #E879F9

All formats

HEX
#e879f9
RGB
rgb(232 121 249)
RGB (legacy)
rgb(232, 121, 249)
HSL
hsl(292.03 91.43% 72.55%) → hsl(292 91% 73%)
HWB
hwb(292 47% 2%)
OKLCH
oklch(0.748 0.207 322.2) · oklch(74.8% 0.207 322.2)
OKLab
oklab(0.748 0.163 -0.127)
Lab (D50)
lab(67.58 57.16 -45.80)
LCH (D50)
lch(67.58 73.25 321.30)
Display P3
color(display-p3 0.8530 0.4974 0.9501)
Linear sRGB
color(srgb-linear 0.8070 0.1912 0.9473)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #e879f9;
  color: rgb(232 121 249);
  color: hsl(292 91% 73%);
  color: oklch(0.748 0.207 322.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.748 0.207 322.2);
}
/* arbitrary values */
class="text-[#e879f9] bg-[oklch(0.748_0.207_322.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8530 0.4974 0.9501); }
}

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

  • #FD8CFF · oklch(0.808 0.207 322.2) · ΔL +0.06
  • #D466E5 · oklch(0.688 0.207 322.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?