OKLCH to HEX: #C6005C

Also known as: Tailwind pink-700

Result

oklch(0.53170 0.21370 4.812) → #C6005C

Values are shown at full precision, so converting back gives exactly #c6005c. 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.53170 0.21370 4.812)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.21295
    b = C·sin H = 0.01793
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.619967
    m′ = L − 0.1056·a − 0.0639·b = 0.508076
    s′ = L − 0.0895·a − 1.2915·b = 0.489493
  4. 4. cube

    l = 0.619967³ = 0.238290
    m = 0.508076³ = 0.131156
    s = 0.489493³ = 0.117284
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.564713
    G = −1.2684·l + 2.6098·m − 0.3413·s = -0.000004
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.107019
  6. 6. linear → sRGB, × 255

    R = 0.77647 × 255 = 198.00 → 198
    G = 0.00000 × 255 = 0.00 → 0
    B = 0.36078 × 255 = 92.00 → 92
  7. 7. RGB → HEX

    #C6005C

All formats

HEX
#c6005c
RGB
rgb(198 0 92)
RGB (legacy)
rgb(198, 0, 92)
HSL
hsl(332.12 100.00% 38.82%) → hsl(332 100% 39%)
HWB
hwb(332 0% 22%)
OKLCH
oklch(0.532 0.214 4.8) · oklch(53.2% 0.214 4.8)
OKLab
oklab(0.532 0.213 0.018)
Lab (D50)
lab(43.08 69.00 8.37)
LCH (D50)
lch(43.08 69.50 6.92)
Display P3
color(display-p3 0.7114 0.1462 0.3609)
Linear sRGB
color(srgb-linear 0.5647 0.0000 0.1070)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #c6005c;
  color: rgb(198 0 92);
  color: hsl(332 100% 39%);
  color: oklch(0.532 0.214 4.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.532 0.214 4.8);
}
/* arbitrary values */
class="text-[#c6005c] bg-[oklch(0.532_0.214_4.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7114 0.1462 0.3609); }
}

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

  • #DC2A6D · oklch(0.592 0.214 4.8) · ΔL +0.06
  • #B0004B · oklch(0.472 0.214 4.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?