HEX naar HSL: #1C1917
Ook bekend als: Tailwind stone-900, Tailwind v3 stone-900
Resultaat
#1C1917 → hsl(24 10% 10%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #1c1917. 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.1098 G = 0.0980 B = 0.0902
2. max, min, Δ
max = 0.1098 min = 0.0902 Δ = max − min = 0.0196
3. L
L = (max + min) / 2 = 0.1000 = 10.00%
4. S
S = Δ / (1 − |2L − 1|) = 0.0980 = 9.80%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0980 − 0.0902) / 0.0196) mod 6) = 24.00°
6. HSL
hsl(24.00 9.80% 10.00%)
Alle formaten
- HEX
- #1c1917
- RGB
- rgb(28 25 23)
- RGB (legacy)
- rgb(28, 25, 23)
- HSL
- hsl(24.00 9.80% 10.00%) → hsl(24 10% 10%)
- HWB
- hwb(24 9% 89%)
- OKLCH
- oklch(0.216 0.006 56.0) · oklch(21.6% 0.006 56.0)
- OKLab
- oklab(0.216 0.003 0.005)
- Lab (D50)
- lab(9.05 1.18 1.97)
- LCH (D50)
- lch(9.05 2.30 59.13)
- Display P3
- color(display-p3 0.1078 0.0985 0.0911)
- Linear sRGB
- color(srgb-linear 0.0116 0.0097 0.0086)
Gamut: sRGB en Display P3
#1C1917 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.053 en Display P3 van 0.060; deze kleur gebruikt 12% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #1c1917;
color: rgb(28 25 23);
color: hsl(24 10% 10%);
color: oklch(0.216 0.006 56.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.216 0.006 56.0);
}
/* arbitrary values */
class="text-[#1c1917] bg-[oklch(0.216_0.006_56.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1078 0.0985 0.0911); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1c1917 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- taupe-900#1D1816
- zinc-900#18181B
- neutral-900#171717
- mist-900#161B1D
- olive-900#1D1D16
- mauve-900#1D161E
- v3 gray-900#111827
- gray-900#101828
Lichter en donkerder, dezelfde tint en chroma
- #2A2725 · oklch(0.276 0.006 56.0) · ΔL +0.06
- #0F0C0A · oklch(0.156 0.006 56.0) · ΔL −0.06