HEX to OKLCH: #463947

Also known as: Tailwind mauve-700

Result

#463947 → oklch(0.364 0.029 323.9)

Values are shown at full precision, so converting back gives exactly #463947. 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: 70/255 = 0.27451 → 0.061246  (((x + 0.055) / 1.055)^2.4)
    G: 57/255 = 0.22353 → 0.040915  (((x + 0.055) / 1.055)^2.4)
    B: 71/255 = 0.27843 → 0.063010  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.050433
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.047596
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.056630
  3. 3. cube root

    l′ = ∛0.050433 = 0.369463
    m′ = ∛0.047596 = 0.362402
    s′ = ∛0.056630 = 0.384015
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.36380
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02370
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.01729
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.02934
    H = atan2(b, a) = 323.885°
    L = 0.36380
  6. 6. OKLCH

    oklch(0.36380 0.02934 323.885)
    rounded: oklch(0.364 0.029 323.9)

All formats

HEX
#463947
RGB
rgb(70 57 71)
RGB (legacy)
rgb(70, 57, 71)
HSL
hsl(295.71 10.94% 25.10%) → hsl(296 11% 25%)
HWB
hwb(296 22% 72%)
OKLCH
oklch(0.364 0.029 323.9) · oklch(36.4% 0.029 323.9)
OKLab
oklab(0.364 0.024 -0.017)
Lab (D50)
lab(25.80 8.11 -6.40)
LCH (D50)
lch(25.80 10.33 321.74)
Display P3
color(display-p3 0.2663 0.2254 0.2748)
Linear sRGB
color(srgb-linear 0.0612 0.0409 0.0630)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #463947;
  color: rgb(70 57 71);
  color: hsl(296 11% 25%);
  color: oklch(0.364 0.029 323.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.364 0.029 323.9);
}
/* arbitrary values */
class="text-[#463947] bg-[oklch(0.364_0.029_323.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2663 0.2254 0.2748); }
}

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

  • #564957 · oklch(0.424 0.029 323.9) · ΔL +0.06
  • #362A37 · oklch(0.304 0.029 323.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?