HEX to OKLCH: #A6A09B

Also known as: Tailwind stone-400

Result

#A6A09B → oklch(0.709 0.010 62.5)

Values are shown at full precision, so converting back gives exactly #a6a09b. 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. sRGB → linear

    R: 166/255 = 0.65098 → 0.381326  (((x + 0.055) / 1.055)^2.4)
    G: 160/255 = 0.62745 → 0.351533  (((x + 0.055) / 1.055)^2.4)
    B: 155/255 = 0.60784 → 0.327778  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.362592
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.355295
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.339199
  3. 3. cube root

    l′ = ∛0.362592 = 0.713082
    m′ = ∛0.355295 = 0.708266
    s′ = ∛0.339199 = 0.697404
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.70932
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00463
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00891
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.01004
    H = atan2(b, a) = 62.526°
    L = 0.70932
  6. 6. OKLCH

    oklch(0.70932 0.01004 62.526)
    rounded: oklch(0.709 0.010 62.5)

All formats

HEX
#a6a09b
RGB
rgb(166 160 155)
RGB (legacy)
rgb(166, 160, 155)
HSL
hsl(27.27 5.82% 62.94%) → hsl(27 6% 63%)
HWB
hwb(27 61% 35%)
OKLCH
oklch(0.709 0.010 62.5) · oklch(70.9% 0.010 62.5)
OKLab
oklab(0.709 0.005 0.009)
Lab (D50)
lab(66.27 1.57 3.43)
LCH (D50)
lch(66.27 3.77 65.39)
Display P3
color(display-p3 0.6469 0.6283 0.6101)
Linear sRGB
color(srgb-linear 0.3813 0.3515 0.3278)

Gamut: sRGB and Display P3

#A6A09B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.162 and Display P3 reaches 0.186; this color uses 6% of the sRGB chroma available.

CSS snippets

.element {
  color: #a6a09b;
  color: rgb(166 160 155);
  color: hsl(27 6% 63%);
  color: oklch(0.709 0.010 62.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.709 0.010 62.5);
}
/* arbitrary values */
class="text-[#a6a09b] bg-[oklch(0.709_0.010_62.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6469 0.6283 0.6101); }
}

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

  • #B9B3AE · oklch(0.769 0.010 62.5) · ΔL +0.06
  • #948E89 · oklch(0.649 0.010 62.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?