OKLCH to HEX: #A3004C

Also known as: Tailwind pink-800

Result

oklch(0.46068 0.18535 4.099) → #A3004C

Values are shown at full precision, so converting back gives exactly #a3004c. 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.46068 0.18535 4.099)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.18488
    b = C·sin H = 0.01325
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.536812
    m′ = L − 0.1056·a − 0.0639·b = 0.440318
    s′ = L − 0.0895·a − 1.2915·b = 0.427026
  4. 4. cube

    l = 0.536812³ = 0.154692
    m = 0.440318³ = 0.085369
    s = 0.427026³ = 0.077869
  5. 5. LMS → linear sRGB

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

    R = 0.63921 × 255 = 163.00 → 163
    G = 0.00000 × 255 = 0.00 → 0
    B = 0.29804 × 255 = 76.00 → 76
  7. 7. RGB → HEX

    #A3004C

All formats

HEX
#a3004c
RGB
rgb(163 0 76)
RGB (legacy)
rgb(163, 0, 76)
HSL
hsl(332.02 100.00% 31.96%) → hsl(332 100% 32%)
HWB
hwb(332 0% 36%)
OKLCH
oklch(0.461 0.185 4.1) · oklch(46.1% 0.185 4.1)
OKLab
oklab(0.461 0.185 0.013)
Lab (D50)
lab(35.18 59.80 6.31)
LCH (D50)
lch(35.18 60.13 6.03)
Display P3
color(display-p3 0.5849 0.1130 0.2976)
Linear sRGB
color(srgb-linear 0.3663 0.0000 0.0723)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #a3004c;
  color: rgb(163 0 76);
  color: hsl(332 100% 32%);
  color: oklch(0.461 0.185 4.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.461 0.185 4.1);
}
/* arbitrary values */
class="text-[#a3004c] bg-[oklch(0.461_0.185_4.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5849 0.1130 0.2976); }
}

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

  • #B8245D · oklch(0.521 0.185 4.1) · ΔL +0.06
  • #8E003C · oklch(0.401 0.185 4.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?