OKLCH to HEX: #FF1493

Also known as: CSS deeppink

Result

oklch(0.65493 0.26134 356.945) → #FF1493

Values are shown at full precision, so converting back gives exactly #ff1493. 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.65493 0.26134 356.945)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.26097
    b = C·sin H = -0.01393
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.755356
    m′ = L − 0.1056·a − 0.0639·b = 0.628271
    s′ = L − 0.0895·a − 1.2915·b = 0.649565
  4. 4. cube

    l = 0.755356³ = 0.430978
    m = 0.628271³ = 0.247994
    s = 0.649565³ = 0.274074
  5. 5. LMS → linear sRGB

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

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.07838 × 255 = 19.99 → 20
    B = 0.57646 × 255 = 147.00 → 147
  7. 7. RGB → HEX

    #FF1493

All formats

HEX
#ff1493
RGB
rgb(255 20 147)
RGB (legacy)
rgb(255, 20, 147)
HSL
hsl(327.57 100.00% 53.92%) → hsl(328 100% 54%)
HWB
hwb(328 8% 0%)
OKLCH
oklch(0.655 0.261 356.9) · oklch(65.5% 0.261 356.9)
OKLab
oklab(0.655 0.261 -0.014)
Lab (D50)
lab(56.60 83.45 -4.12)
LCH (D50)
lch(56.60 83.55 357.17)
Display P3
color(display-p3 0.9181 0.2208 0.5687)
Linear sRGB
color(srgb-linear 1.0000 0.0070 0.2918)

Gamut: sRGB and Display P3

#FF1493 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.261 and Display P3 reaches 0.301; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #ff1493;
  color: rgb(255 20 147);
  color: hsl(328 100% 54%);
  color: oklch(0.655 0.261 356.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.655 0.261 356.9);
}
/* arbitrary values */
class="text-[#ff1493] bg-[oklch(0.655_0.261_356.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9181 0.2208 0.5687); }
}

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

  • #FF39A5 · oklch(0.715 0.261 356.9) · ΔL +0.06
  • #E90081 · oklch(0.595 0.261 356.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?