HSL in HEX: #155DFC
Auch bekannt als: Tailwind blue-600
Ergebnis
hsl(221.30 97.47% 53.53%) → #155DFC
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #155dfc. Die gerundete Form fügst du üblicherweise in CSS ein.
Rechenweg Schritt für Schritt
Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.
1. input
H = 221.30°, S = 97.47%, L = 53.53%
2. C
C = (1 − |2L − 1|) × S = 0.90589
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.28233 (H / 60° = 3.6883, sector 3)
4. m
m = L − C / 2 = 0.08236
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.28233, 0.90589) R = round((0.00000 + 0.08236) × 255) = 21 G = round((0.28233 + 0.08236) × 255) = 93 B = round((0.90589 + 0.08236) × 255) = 252
6. RGB → HEX
#155DFC
Alle Formate
- 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 und Display P3
#155DFC ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.251, Display P3 von 0.269; diese Farbe nutzt 98 % der verfügbaren 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); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- 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
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #2972FF · oklch(0.607 0.246 262.9) · ΔL +0.06
- #0048E7 · oklch(0.487 0.246 262.9) · ΔL −0.06