HEX naar HSL: #451A03
Ook bekend als: Tailwind v3 amber-950
Resultaat
#451A03 → hsl(21 92% 14%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #451a03. 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.2706 G = 0.1020 B = 0.0118
2. max, min, Δ
max = 0.2706 min = 0.0118 Δ = max − min = 0.2588
3. L
L = (max + min) / 2 = 0.1412 = 14.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.9167 = 91.67%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1020 − 0.0118) / 0.2588) mod 6) = 20.91°
6. HSL
hsl(20.91 91.67% 14.12%)
Alle formaten
- HEX
- #451a03
- RGB
- rgb(69 26 3)
- RGB (legacy)
- rgb(69, 26, 3)
- HSL
- hsl(20.91 91.67% 14.12%) → hsl(21 92% 14%)
- HWB
- hwb(21 1% 73%)
- OKLCH
- oklch(0.279 0.074 45.6) · oklch(27.9% 0.074 45.6)
- OKLab
- oklab(0.279 0.052 0.053)
- Lab (D50)
- lab(15.85 20.07 22.65)
- LCH (D50)
- lch(15.85 30.26 48.45)
- Display P3
- color(display-p3 0.2498 0.1119 0.0335)
- Linear sRGB
- color(srgb-linear 0.0595 0.0103 0.0009)
Gamut: sRGB en Display P3
#451A03 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.079 en Display P3 van 0.090; deze kleur gebruikt 94% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #451a03;
color: rgb(69 26 3);
color: hsl(21 92% 14%);
color: oklch(0.279 0.074 45.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.279 0.074 45.6);
}
/* arbitrary values */
class="text-[#451a03] bg-[oklch(0.279_0.074_45.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2498 0.1119 0.0335); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #451a03 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- amber-950#461901
- v3 yellow-950#422006
- yellow-950#432004
- v3 orange-950#431407
- orange-950#441306
- v3 red-950#450A0A
- red-950#460809
- v3 rose-950#4C0519
Lichter en donkerder, dezelfde tint en chroma
- #562A13 · oklch(0.339 0.074 45.6) · ΔL +0.06
- #340A00 · oklch(0.219 0.074 45.6) · ΔL −0.06