HEX naar HSL: #E5E5E5
Ook bekend als: Tailwind neutral-200, Tailwind v3 neutral-200
Resultaat
#E5E5E5 → hsl(0 0% 90%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #e5e5e5. 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.8980 G = 0.8980 B = 0.8980
2. max, min, Δ
max = 0.8980 min = 0.8980 Δ = max − min = 0.0000
3. L
L = (max + min) / 2 = 0.8980 = 89.80%
4. S
S = Δ / (1 − |2L − 1|) = 0.0000 = 0.00%
5. H
Δ = 0 → grey, hue is undefined (written as 0)
6. HSL
hsl(0.00 0.00% 89.80%)
Alle formaten
- HEX
- #e5e5e5
- RGB
- rgb(229 229 229)
- RGB (legacy)
- rgb(229, 229, 229)
- HSL
- hsl(0.00 0.00% 89.80%) → hsl(0 0% 90%)
- HWB
- hwb(0 90% 10%)
- OKLCH
- oklch(0.922 0.000 0.0) · oklch(92.2% 0.000 0.0)
- OKLab
- oklab(0.922 0.000 0.000)
- Lab (D50)
- lab(90.94 0.00 0.00)
- LCH (D50)
- lch(90.94 0.00 0.00)
- Display P3
- color(display-p3 0.8980 0.8980 0.8980)
- Linear sRGB
- color(srgb-linear 0.7835 0.7835 0.7835)
Gamut: sRGB en Display P3
#E5E5E5 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.043 en Display P3 van 0.057; deze kleur gebruikt 0% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #e5e5e5;
color: rgb(229 229 229);
color: hsl(0 0% 90%);
color: oklch(0.922 0.000 0.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.922 0.000 0.0);
}
/* arbitrary values */
class="text-[#e5e5e5] bg-[oklch(0.922_0.000_0.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8980 0.8980 0.8980); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e5e5e5 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- stone-200#E7E5E4
- taupe-200#E8E4E3
- zinc-200#E4E4E7
- mauve-200#E7E4E7
- mist-200#E3E7E8
- gray-200#E5E7EB
- olive-200#E8E8E3
- slate-200#E2E8F0
Lichter en donkerder, dezelfde tint en chroma
- #F9F9F9 · oklch(0.982 0.000 0.0) · ΔL +0.06
- #D1D1D1 · oklch(0.862 0.000 0.0) · ΔL −0.06