HEX naar HSL: #A0522D
Ook bekend als: CSS sienna
Resultaat
#A0522D → hsl(19 56% 40%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #a0522d. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.6275 G = 0.3216 B = 0.1765
2. max, min, Δ
max = 0.6275 min = 0.1765 Δ = max − min = 0.4510
3. L
L = (max + min) / 2 = 0.4020 = 40.20%
4. S
S = Δ / (1 − |2L − 1|) = 0.5610 = 56.10%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.3216 − 0.1765) / 0.4510) mod 6) = 19.30°
6. HSL
hsl(19.30 56.10% 40.20%)
Alle formaten
- HEX
- #a0522d
- RGB
- rgb(160 82 45)
- RGB (legacy)
- rgb(160, 82, 45)
- HSL
- hsl(19.30 56.10% 40.20%) → hsl(19 56% 40%)
- HWB
- hwb(19 18% 37%)
- OKLCH
- oklch(0.526 0.115 44.6) · oklch(52.6% 0.115 44.6)
- OKLab
- oklab(0.526 0.082 0.081)
- Lab (D50)
- lab(44.27 30.91 36.35)
- LCH (D50)
- lch(44.27 47.71 49.62)
- Display P3
- color(display-p3 0.5875 0.3376 0.2091)
- Linear sRGB
- color(srgb-linear 0.3515 0.0844 0.0262)
Gamut: sRGB en Display P3
#A0522D is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.152 en Display P3 van 0.172; deze kleur gebruikt 76% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #a0522d;
color: rgb(160 82 45);
color: hsl(19 56% 40%);
color: oklch(0.526 0.115 44.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.526 0.115 44.6);
}
/* arbitrary values */
class="text-[#a0522d] bg-[oklch(0.526_0.115_44.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5875 0.3376 0.2091); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a0522d calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 amber-700#B45309
- yellow-700#A65F00
- v3 yellow-700#A16207
- amber-700#BB4D00
- v3 amber-800#92400E
- amber-800#973C00
- saddlebrown#8B4513
- yellow-800#894B00
Lichter en donkerder, dezelfde tint en chroma
- #B4643F · oklch(0.586 0.115 44.6) · ΔL +0.06
- #8D411A · oklch(0.466 0.115 44.6) · ΔL −0.06