HEX in HSL: #DAA520
Auch bekannt als: CSS goldenrod
Ergebnis
#DAA520 → hsl(43 74% 49%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #daa520. 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. RGB ÷ 255
R = 0.8549 G = 0.6471 B = 0.1255
2. max, min, Δ
max = 0.8549 min = 0.1255 Δ = max − min = 0.7294
3. L
L = (max + min) / 2 = 0.4902 = 49.02%
4. S
S = Δ / (1 − |2L − 1|) = 0.7440 = 74.40%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.6471 − 0.1255) / 0.7294) mod 6) = 42.90°
6. HSL
hsl(42.90 74.40% 49.02%)
Alle Formate
- HEX
- #daa520
- RGB
- rgb(218 165 32)
- RGB (legacy)
- rgb(218, 165, 32)
- HSL
- hsl(42.90 74.40% 49.02%) → hsl(43 74% 49%)
- HWB
- hwb(43 13% 15%)
- OKLCH
- oklch(0.752 0.147 84.0) · oklch(75.2% 0.147 84.0)
- OKLab
- oklab(0.752 0.015 0.146)
- Lab (D50)
- lab(71.32 12.21 68.68)
- LCH (D50)
- lch(71.32 69.76 79.92)
- Display P3
- color(display-p3 0.8229 0.6554 0.2537)
- Linear sRGB
- color(srgb-linear 0.7011 0.3763 0.0144)
Gamut: sRGB und Display P3
#DAA520 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.154, Display P3 von 0.178; diese Farbe nutzt 95 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #daa520;
color: rgb(218 165 32);
color: hsl(43 74% 49%);
color: oklch(0.752 0.147 84.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.752 0.147 84.0);
}
/* arbitrary values */
class="text-[#daa520] bg-[oklch(0.752_0.147_84.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8229 0.6554 0.2537); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #daa520 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 amber-500#F59E0B
- v3 yellow-500#EAB308
- yellow-500#F0B100
- orange#FFA500
- amber-500#FE9A00
- darkkhaki#BDB76B
- sandybrown#F4A460
- v3 yellow-600#CA8A04
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #EEB83D · oklch(0.812 0.147 84.0) · ΔL +0.06
- #C69200 · oklch(0.692 0.147 84.0) · ΔL −0.06