HEX naar HSL: #FEE2E2
Ook bekend als: Tailwind v3 red-100
Resultaat
#FEE2E2 → hsl(0 93% 94%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #fee2e2. 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.9961 G = 0.8863 B = 0.8863
2. max, min, Δ
max = 0.9961 min = 0.8863 Δ = max − min = 0.1098
3. L
L = (max + min) / 2 = 0.9412 = 94.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.9333 = 93.33%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.8863 − 0.8863) / 0.1098) mod 6) = 0.00°
6. HSL
hsl(0.00 93.33% 94.12%)
Alle formaten
- HEX
- #fee2e2
- RGB
- rgb(254 226 226)
- RGB (legacy)
- rgb(254, 226, 226)
- HSL
- hsl(0.00 93.33% 94.12%) → hsl(0 93% 94%)
- HWB
- hwb(0 89% 0%)
- OKLCH
- oklch(0.936 0.031 17.7) · oklch(93.6% 0.031 17.7)
- OKLab
- oklab(0.936 0.029 0.009)
- Lab (D50)
- lab(92.21 9.93 3.71)
- LCH (D50)
- lch(92.21 10.60 20.46)
- Display P3
- color(display-p3 0.9778 0.8902 0.8883)
- Linear sRGB
- color(srgb-linear 0.9911 0.7605 0.7605)
Gamut: sRGB en Display P3
#FEE2E2 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.032 en Display P3 van 0.042; deze kleur gebruikt 95% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #fee2e2;
color: rgb(254 226 226);
color: hsl(0 93% 94%);
color: oklch(0.936 0.031 17.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.936 0.031 17.7);
}
/* arbitrary values */
class="text-[#fee2e2] bg-[oklch(0.936_0.031_17.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9778 0.8902 0.8883); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fee2e2 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- red-100#FFE2E2
- mistyrose#FFE4E1
- rose-100#FFE4E6
- pink-100#FCE7F3
- taupe-200#E8E4E3
- mauve-200#E7E4E7
- stone-200#E7E5E4
- antiquewhite#FAEBD7
Lichter en donkerder, dezelfde tint en chroma
- #FFF6F6 · oklch(0.996 0.031 17.7) · ΔL +0.06
- #EACECE · oklch(0.876 0.031 17.7) · ΔL −0.06