OKLCH in HEX: #8B4513

Noto anche come: CSS saddlebrown

Risultato

oklch(0.47078 0.11214 50.845) → #8B4513

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #8b4513. La forma arrotondata è quella che di solito incolli nel CSS.

Calcolo passo passo

Ogni numero è calcolato dall’input, nulla viene cercato in tabelle.

  1. 1. input

    oklch(0.47078 0.11214 50.845)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.07081
    b = C·sin H = 0.08696
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.517610
    m′ = L − 0.1056·a − 0.0639·b = 0.457753
    s′ = L − 0.0895·a − 1.2915·b = 0.352139
  4. 4. cube

    l = 0.517610³ = 0.138678
    m = 0.457753³ = 0.095916
    s = 0.352139³ = 0.043666
  5. 5. LMS → linear sRGB

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

    R = 0.54509 × 255 = 139.00 → 139
    G = 0.27059 × 255 = 69.00 → 69
    B = 0.07452 × 255 = 19.00 → 19
  7. 7. RGB → HEX

    #8B4513

Tutti i formati

HEX
#8b4513
RGB
rgb(139 69 19)
RGB (legacy)
rgb(139, 69, 19)
HSL
hsl(25.00 75.95% 30.98%) → hsl(25 76% 31%)
HWB
hwb(25 7% 45%)
OKLCH
oklch(0.471 0.112 50.8) · oklch(47.1% 0.112 50.8)
OKLab
oklab(0.471 0.071 0.087)
Lab (D50)
lab(37.93 28.08 41.57)
LCH (D50)
lch(37.93 50.16 55.96)
Display P3
color(display-p3 0.5095 0.2852 0.1266)
Linear sRGB
color(srgb-linear 0.2582 0.0595 0.0065)

Gamut: sRGB e Display P3

#8B4513 è un colore esadecimale, quindi sta dentro sRGB e di conseguenza dentro Display P3. A questa luminosità e tonalità sRGB arriva a una croma di 0.123 e Display P3 a 0.140; questo colore usa il 91% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #8b4513;
  color: rgb(139 69 19);
  color: hsl(25 76% 31%);
  color: oklch(0.471 0.112 50.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.471 0.112 50.8);
}
/* arbitrary values */
class="text-[#8b4513] bg-[oklch(0.471_0.112_50.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5095 0.2852 0.1266); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8b4513 calc(l - 0.1) c h); }

Colori vicini

I colori più vicini nelle palette Tailwind e CSS (distanza OKLab).

Più chiaro e più scuro, stessa tonalità e croma

  • #9E5628 · oklch(0.531 0.112 50.8) · ΔL +0.06
  • #783400 · oklch(0.411 0.112 50.8) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →