HEX naar HSL: #155DFC
Ook bekend als: Tailwind blue-600
Resultaat
#155DFC → hsl(221 97% 54%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #155dfc. 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.0824 G = 0.3647 B = 0.9882
2. max, min, Δ
max = 0.9882 min = 0.0824 Δ = max − min = 0.9059
3. L
L = (max + min) / 2 = 0.5353 = 53.53%
4. S
S = Δ / (1 − |2L − 1|) = 0.9747 = 97.47%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0824 − 0.3647) / 0.9059 + 4) = 221.30°
6. HSL
hsl(221.30 97.47% 53.53%)
Alle formaten
- HEX
- #155dfc
- RGB
- rgb(21 93 252)
- RGB (legacy)
- rgb(21, 93, 252)
- HSL
- hsl(221.30 97.47% 53.53%) → hsl(221 97% 54%)
- HWB
- hwb(221 8% 1%)
- OKLCH
- oklch(0.547 0.246 262.9) · oklch(54.7% 0.246 262.9)
- OKLab
- oklab(0.547 -0.030 -0.244)
- Lab (D50)
- lab(44.11 29.12 -86.22)
- LCH (D50)
- lch(44.11 91.01 288.66)
- Display P3
- color(display-p3 0.1741 0.3592 0.9521)
- Linear sRGB
- color(srgb-linear 0.0075 0.1095 0.9734)
Gamut: sRGB en Display P3
#155DFC is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.251 en Display P3 van 0.269; deze kleur gebruikt 98% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #155dfc;
color: rgb(21 93 252);
color: hsl(221 97% 54%);
color: oklch(0.547 0.246 262.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.547 0.246 262.9);
}
/* arbitrary values */
class="text-[#155dfc] bg-[oklch(0.547_0.246_262.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1741 0.3592 0.9521); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #155dfc calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 blue-600#2563EB
- blue-700#1447E6
- royalblue#4169E1
- v3 blue-700#1D4ED8
- v3 indigo-600#4F46E5
- indigo-500#615FFF
- indigo-600#4F39F6
- v3 indigo-500#6366F1
Lichter en donkerder, dezelfde tint en chroma
- #2972FF · oklch(0.607 0.246 262.9) · ΔL +0.06
- #0048E7 · oklch(0.487 0.246 262.9) · ΔL −0.06