HEX naar HSL: #FFF1F2
Ook bekend als: Tailwind rose-50, Tailwind v3 rose-50
Resultaat
#FFF1F2 → hsl(356 100% 97%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #fff1f2. 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 = 1.0000 G = 0.9451 B = 0.9490
2. max, min, Δ
max = 1.0000 min = 0.9451 Δ = max − min = 0.0549
3. L
L = (max + min) / 2 = 0.9725 = 97.25%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9451 − 0.9490) / 0.0549) mod 6) = 355.71°
6. HSL
hsl(355.71 100.00% 97.25%)
Alle formaten
- HEX
- #fff1f2
- RGB
- rgb(255 241 242)
- RGB (legacy)
- rgb(255, 241, 242)
- HSL
- hsl(355.71 100.00% 97.25%) → hsl(356 100% 97%)
- HWB
- hwb(356 95% 0%)
- OKLCH
- oklch(0.969 0.015 12.4) · oklch(96.9% 0.015 12.4)
- OKLab
- oklab(0.969 0.015 0.003)
- Lab (D50)
- lab(96.28 5.00 1.29)
- LCH (D50)
- lch(96.28 5.16 14.52)
- Display P3
- color(display-p3 0.9905 0.9470 0.9496)
- Linear sRGB
- color(srgb-linear 1.0000 0.8796 0.8879)
Gamut: sRGB en Display P3
#FFF1F2 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.015 en Display P3 van 0.020; deze kleur gebruikt 100% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #fff1f2;
color: rgb(255 241 242);
color: hsl(356 100% 97%);
color: oklch(0.969 0.015 12.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.969 0.015 12.4);
}
/* arbitrary values */
class="text-[#fff1f2] bg-[oklch(0.969_0.015_12.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9905 0.9470 0.9496); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fff1f2 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- red-50#FEF2F2
- lavenderblush#FFF0F5
- pink-50#FDF2F8
- seashell#FFF5EE
- neutral-100#F5F5F5
- zinc-100#F4F4F5
- stone-100#F5F5F4
- mauve-100#F3F1F3
Lichter en donkerder, dezelfde tint en chroma
- #FFFBFC · oklch(1.000 0.015 12.4) · ΔL +0.06
- #EBDDDE · oklch(0.909 0.015 12.4) · ΔL −0.06