HEX in OKLCH: #DEB887
Auch bekannt als: CSS burlywood
Ergebnis
#DEB887 → oklch(0.805 0.078 73.4)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #deb887. 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. sRGB → linear
R: 222/255 = 0.87059 → 0.730461 (((x + 0.055) / 1.055)^2.4) G: 184/255 = 0.72157 → 0.479320 (((x + 0.055) / 1.055)^2.4) B: 135/255 = 0.52941 → 0.242281 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.570651 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.507080 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.352167
3. cube root
l′ = ∛0.570651 = 0.829450 m′ = ∛0.507080 = 0.797429 s′ = ∛0.352167 = 0.706181
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.80454 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02222 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.07462
5. Oklab → OKLCH
C = √(a² + b²) = 0.07786 H = atan2(b, a) = 73.417° L = 0.80454
6. OKLCH
oklch(0.80454 0.07786 73.417) rounded: oklch(0.805 0.078 73.4)
Alle Formate
- HEX
- #deb887
- RGB
- rgb(222 184 135)
- RGB (legacy)
- rgb(222, 184, 135)
- HSL
- hsl(33.79 56.86% 70.00%) → hsl(34 57% 70%)
- HWB
- hwb(34 53% 13%)
- OKLCH
- oklch(0.805 0.078 73.4) · oklch(80.5% 0.078 73.4)
- OKLab
- oklab(0.805 0.022 0.075)
- Lab (D50)
- lab(77.33 9.28 30.32)
- LCH (D50)
- lch(77.33 31.71 72.98)
- Display P3
- color(display-p3 0.8466 0.7272 0.5543)
- Linear sRGB
- color(srgb-linear 0.7305 0.4793 0.2423)
Gamut: sRGB und Display P3
#DEB887 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.168, Display P3 von 0.196; diese Farbe nutzt 46 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #deb887;
color: rgb(222 184 135);
color: hsl(34 57% 70%);
color: oklch(0.805 0.078 73.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.805 0.078 73.4);
}
/* arbitrary values */
class="text-[#deb887] bg-[oklch(0.805_0.078_73.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8466 0.7272 0.5543); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #deb887 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- tan#D2B48C
- v3 orange-300#FDBA74
- orange-300#FFB86A
- sandybrown#F4A460
- darkkhaki#BDB76B
- lightsalmon#FFA07A
- silver#C0C0C0
- darksalmon#E9967A
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #F2CB9A · oklch(0.865 0.078 73.4) · ΔL +0.06
- #CAA575 · oklch(0.745 0.078 73.4) · ΔL −0.06