HEX naar HSL: #EAB308
Ook bekend als: Tailwind v3 yellow-500
Resultaat
#EAB308 → hsl(45 93% 47%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #eab308. 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.9176 G = 0.7020 B = 0.0314
2. max, min, Δ
max = 0.9176 min = 0.0314 Δ = max − min = 0.8863
3. L
L = (max + min) / 2 = 0.4745 = 47.45%
4. S
S = Δ / (1 − |2L − 1|) = 0.9339 = 93.39%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.7020 − 0.0314) / 0.8863) mod 6) = 45.40°
6. HSL
hsl(45.40 93.39% 47.45%)
Alle formaten
- HEX
- #eab308
- RGB
- rgb(234 179 8)
- RGB (legacy)
- rgb(234, 179, 8)
- HSL
- hsl(45.40 93.39% 47.45%) → hsl(45 93% 47%)
- HWB
- hwb(45 3% 8%)
- OKLCH
- oklch(0.795 0.162 86.0) · oklch(79.5% 0.162 86.0)
- OKLab
- oklab(0.795 0.011 0.161)
- Lab (D50)
- lab(76.46 11.75 77.37)
- LCH (D50)
- lch(76.46 78.26 81.37)
- Display P3
- color(display-p3 0.8843 0.7105 0.2450)
- Linear sRGB
- color(srgb-linear 0.8228 0.4508 0.0024)
Gamut: sRGB en Display P3
#EAB308 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.163 en Display P3 van 0.188; deze kleur gebruikt 99% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #eab308;
color: rgb(234 179 8);
color: hsl(45 93% 47%);
color: oklch(0.795 0.162 86.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.795 0.162 86.0);
}
/* arbitrary values */
class="text-[#eab308] bg-[oklch(0.795_0.162_86.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8843 0.7105 0.2450); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #eab308 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- yellow-500#F0B100
- amber-400#FFB900
- v3 amber-400#FBBF24
- orange#FFA500
- goldenrod#DAA520
- v3 amber-500#F59E0B
- yellow-400#FDC700
- amber-500#FE9A00
Lichter en donkerder, dezelfde tint en chroma
- #FEC734 · oklch(0.855 0.162 86.0) · ΔL +0.06
- #D6A000 · oklch(0.735 0.162 86.0) · ΔL −0.06