HEX naar HSL: #101828
Ook bekend als: Tailwind gray-900
Resultaat
#101828 → hsl(220 43% 11%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #101828. 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.0627 G = 0.0941 B = 0.1569
2. max, min, Δ
max = 0.1569 min = 0.0627 Δ = max − min = 0.0941
3. L
L = (max + min) / 2 = 0.1098 = 10.98%
4. S
S = Δ / (1 − |2L − 1|) = 0.4286 = 42.86%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0627 − 0.0941) / 0.0941 + 4) = 220.00°
6. HSL
hsl(220.00 42.86% 10.98%)
Alle formaten
- HEX
- #101828
- RGB
- rgb(16 24 40)
- RGB (legacy)
- rgb(16, 24, 40)
- HSL
- hsl(220.00 42.86% 10.98%) → hsl(220 43% 11%)
- HWB
- hwb(220 6% 84%)
- OKLCH
- oklch(0.210 0.034 263.4) · oklch(21.0% 0.034 263.4)
- OKLab
- oklab(0.210 -0.004 -0.034)
- Lab (D50)
- lab(8.12 0.58 -12.27)
- LCH (D50)
- lch(8.12 12.29 272.73)
- Display P3
- color(display-p3 0.0691 0.0932 0.1520)
- Linear sRGB
- color(srgb-linear 0.0052 0.0091 0.0212)
Gamut: sRGB en Display P3
#101828 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.111 en Display P3 van 0.135; deze kleur gebruikt 31% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #101828;
color: rgb(16 24 40);
color: hsl(220 43% 11%);
color: oklch(0.210 0.034 263.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.210 0.034 263.4);
}
/* arbitrary values */
class="text-[#101828] bg-[oklch(0.210_0.034_263.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0691 0.0932 0.1520); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #101828 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 gray-900#111827
- v3 slate-900#0F172A
- slate-900#0F172B
- zinc-900#18181B
- mist-900#161B1D
- mauve-900#1D161E
- neutral-900#171717
- stone-900#1C1917
Lichter en donkerder, dezelfde tint en chroma
- #1E2637 · oklch(0.270 0.034 263.4) · ΔL +0.06
- #050B19 · oklch(0.150 0.034 263.4) · ΔL −0.06