OKLCH to HEX: #E60076

Also known as: Tailwind pink-600

Result

oklch(0.59786 0.24168 1.370) → #E60076

Values are shown at full precision, so converting back gives exactly #e60076. 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.59786 0.24168 1.370)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.24161
    b = C·sin H = 0.00578
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.694867
    m′ = L − 0.1056·a − 0.0639·b = 0.571986
    s′ = L − 0.0895·a − 1.2915·b = 0.568777
  4. 4. cube

    l = 0.694867³ = 0.335509
    m = 0.571986³ = 0.187136
    s = 0.568777³ = 0.184004
  5. 5. LMS → linear sRGB

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

    R = 0.90196 × 255 = 230.00 → 230
    G = 0.00003 × 255 = 0.01 → 0
    B = 0.46275 × 255 = 118.00 → 118
  7. 7. RGB → HEX

    #E60076

All formats

HEX
#e60076
RGB
rgb(230 0 118)
RGB (legacy)
rgb(230, 0, 118)
HSL
hsl(329.22 100.00% 45.10%) → hsl(329 100% 45%)
HWB
hwb(329 0% 10%)
OKLCH
oklch(0.598 0.242 1.4) · oklch(59.8% 0.242 1.4)
OKLab
oklab(0.598 0.242 0.006)
Lab (D50)
lab(50.34 77.70 3.55)
LCH (D50)
lch(50.34 77.79 2.62)
Display P3
color(display-p3 0.8271 0.1766 0.4595)
Linear sRGB
color(srgb-linear 0.7913 0.0000 0.1812)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #e60076;
  color: rgb(230 0 118);
  color: hsl(329 100% 45%);
  color: oklch(0.598 0.242 1.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.598 0.242 1.4);
}
/* arbitrary values */
class="text-[#e60076] bg-[oklch(0.598_0.242_1.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8271 0.1766 0.4595); }
}

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

  • #FC2F88 · oklch(0.658 0.242 1.4) · ΔL +0.06
  • #D00065 · oklch(0.538 0.242 1.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?