OKLCH to HEX: #ABAB9C

Also known as: Tailwind olive-400

Result

oklch(0.73696 0.02108 106.906) → #ABAB9C

Values are shown at full precision, so converting back gives exactly #abab9c. 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.73696 0.02108 106.906)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00613
    b = C·sin H = 0.02017
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.738883
    m′ = L − 0.1056·a − 0.0639·b = 0.736319
    s′ = L − 0.0895·a − 1.2915·b = 0.711461
  4. 4. cube

    l = 0.738883³ = 0.403392
    m = 0.736319³ = 0.399207
    s = 0.711461³ = 0.360124
  5. 5. LMS → linear sRGB

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

    R = 0.67059 × 255 = 171.00 → 171
    G = 0.67059 × 255 = 171.00 → 171
    B = 0.61176 × 255 = 156.00 → 156
  7. 7. RGB → HEX

    #ABAB9C

All formats

HEX
#abab9c
RGB
rgb(171 171 156)
RGB (legacy)
rgb(171, 171, 156)
HSL
hsl(60.00 8.20% 64.12%) → hsl(60 8% 64%)
HWB
hwb(60 61% 33%)
OKLCH
oklch(0.737 0.021 106.9) · oklch(73.7% 0.021 106.9)
OKLab
oklab(0.737 -0.006 0.020)
Lab (D50)
lab(69.66 -2.02 7.76)
LCH (D50)
lch(69.66 8.02 104.57)
Display P3
color(display-p3 0.6706 0.6706 0.6173)
Linear sRGB
color(srgb-linear 0.4072 0.4072 0.3325)

Gamut: sRGB and Display P3

#ABAB9C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.158 and Display P3 reaches 0.183; this color uses 13% of the sRGB chroma available.

CSS snippets

.element {
  color: #abab9c;
  color: rgb(171 171 156);
  color: hsl(60 8% 64%);
  color: oklch(0.737 0.021 106.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.737 0.021 106.9);
}
/* arbitrary values */
class="text-[#abab9c] bg-[oklch(0.737_0.021_106.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6706 0.6706 0.6173); }
}

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

  • #BEBEAF · oklch(0.797 0.021 106.9) · ΔL +0.06
  • #98988A · oklch(0.677 0.021 106.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?