HEX in HSL: #B8860B

Auch bekannt als: CSS darkgoldenrod

Ergebnis

#B8860B → hsl(43 89% 38%)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #b8860b. Die gerundete Form fügst du üblicherweise in CSS ein.

Rechenweg Schritt für Schritt

Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.

  1. 1. RGB ÷ 255

    R = 0.7216
    G = 0.5255
    B = 0.0431
  2. 2. max, min, Δ

    max = 0.7216
    min = 0.0431
    Δ = max − min = 0.6784
  3. 3. L

    L = (max + min) / 2 = 0.3824 = 38.24%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8872 = 88.72%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.5255 − 0.0431) / 0.6784) mod 6) = 42.66°
  6. 6. HSL

    hsl(42.66 88.72% 38.24%)

Alle Formate

HEX
#b8860b
RGB
rgb(184 134 11)
RGB (legacy)
rgb(184, 134, 11)
HSL
hsl(42.66 88.72% 38.24%) → hsl(43 89% 38%)
HWB
hwb(43 4% 28%)
OKLCH
oklch(0.652 0.132 81.6) · oklch(65.2% 0.132 81.6)
OKLab
oklab(0.652 0.019 0.131)
Lab (D50)
lab(59.69 13.06 62.65)
LCH (D50)
lch(59.69 63.99 78.22)
Display P3
color(display-p3 0.6919 0.5335 0.1846)
Linear sRGB
color(srgb-linear 0.4793 0.2384 0.0033)

Gamut: sRGB und Display P3

#B8860B ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.134, Display P3 von 0.155; diese Farbe nutzt 98 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #b8860b;
  color: rgb(184 134 11);
  color: hsl(43 89% 38%);
  color: oklch(0.652 0.132 81.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.652 0.132 81.6);
}
/* arbitrary values */
class="text-[#b8860b] bg-[oklch(0.652_0.132_81.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6919 0.5335 0.1846); }
}

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

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #CB992D · oklch(0.712 0.132 81.6) · ΔL +0.06
  • #A57400 · oklch(0.592 0.132 81.6) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →