HEX naar HSL: #FB64B6
Ook bekend als: Tailwind pink-400
Resultaat
#FB64B6 → hsl(327 95% 69%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #fb64b6. 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.9843 G = 0.3922 B = 0.7137
2. max, min, Δ
max = 0.9843 min = 0.3922 Δ = max − min = 0.5922
3. L
L = (max + min) / 2 = 0.6882 = 68.82%
4. S
S = Δ / (1 − |2L − 1|) = 0.9497 = 94.97%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.3922 − 0.7137) / 0.5922) mod 6) = 327.42°
6. HSL
hsl(327.42 94.97% 68.82%)
Alle formaten
- HEX
- #fb64b6
- RGB
- rgb(251 100 182)
- RGB (legacy)
- rgb(251, 100, 182)
- HSL
- hsl(327.42 94.97% 68.82%) → hsl(327 95% 69%)
- HWB
- hwb(327 39% 2%)
- OKLCH
- oklch(0.718 0.202 349.7) · oklch(71.8% 0.202 349.7)
- OKLab
- oklab(0.718 0.198 -0.036)
- Lab (D50)
- lab(64.51 64.25 -12.86)
- LCH (D50)
- lch(64.51 65.52 348.68)
- Display P3
- color(display-p3 0.9143 0.4305 0.7026)
- Linear sRGB
- color(srgb-linear 0.9647 0.1274 0.4678)
Gamut: sRGB en Display P3
#FB64B6 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.213 en Display P3 van 0.277; deze kleur gebruikt 95% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #fb64b6;
color: rgb(251 100 182);
color: hsl(327 95% 69%);
color: oklch(0.718 0.202 349.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.718 0.202 349.7);
}
/* arbitrary values */
class="text-[#fb64b6] bg-[oklch(0.718_0.202_349.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9143 0.4305 0.7026); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fb64b6 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- hotpink#FF69B4
- v3 pink-400#F472B6
- v3 pink-500#EC4899
- orchid#DA70D6
- pink-500#F6339A
- rose-400#FF637E
- palevioletred#DB7093
- v3 rose-400#FB7185
Lichter en donkerder, dezelfde tint en chroma
- #FF78C9 · oklch(0.778 0.202 349.7) · ΔL +0.06
- #E650A3 · oklch(0.658 0.202 349.7) · ΔL −0.06