HEX in HSL: #D2B48C

Auch bekannt als: CSS tan

Ergebnis

#D2B48C → hsl(34 44% 69%)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #d2b48c. 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.8235
    G = 0.7059
    B = 0.5490
  2. 2. max, min, Δ

    max = 0.8235
    min = 0.5490
    Δ = max − min = 0.2745
  3. 3. L

    L = (max + min) / 2 = 0.6863 = 68.63%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.4375 = 43.75%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.7059 − 0.5490) / 0.2745) mod 6) = 34.29°
  6. 6. HSL

    hsl(34.29 43.75% 68.63%)

Alle Formate

HEX
#d2b48c
RGB
rgb(210 180 140)
RGB (legacy)
rgb(210, 180, 140)
HSL
hsl(34.29 43.75% 68.63%) → hsl(34 44% 69%)
HWB
hwb(34 55% 18%)
OKLCH
oklch(0.786 0.064 74.6) · oklch(78.6% 0.064 74.6)
OKLab
oklab(0.786 0.017 0.062)
Lab (D50)
lab(75.23 6.93 24.68)
LCH (D50)
lch(75.23 25.63 74.32)
Display P3
color(display-p3 0.8043 0.7102 0.5683)
Linear sRGB
color(srgb-linear 0.6445 0.4564 0.2623)

Gamut: sRGB und Display P3

#D2B48C 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.166, Display P3 von 0.191; diese Farbe nutzt 38 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #d2b48c;
  color: rgb(210 180 140);
  color: hsl(34 44% 69%);
  color: oklch(0.786 0.064 74.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.786 0.064 74.6);
}
/* arbitrary values */
class="text-[#d2b48c] bg-[oklch(0.786_0.064_74.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8043 0.7102 0.5683); }
}

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

  • #E6C79F · oklch(0.846 0.064 74.6) · ΔL +0.06
  • #BFA17A · oklch(0.726 0.064 74.6) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →