HSL in HEX: #38BDF8
Auch bekannt als: Tailwind v3 sky-400
Ergebnis
hsl(198.44 93.20% 59.61%) → #38BDF8
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #38bdf8. 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 = 198.44°, S = 93.20%, L = 59.61%
2. C
C = (1 − |2L − 1|) × S = 0.75287
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.52149 (H / 60° = 3.3073, sector 3)
4. m
m = L − C / 2 = 0.21967
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.52149, 0.75287) R = round((0.00000 + 0.21967) × 255) = 56 G = round((0.52149 + 0.21967) × 255) = 189 B = round((0.75287 + 0.21967) × 255) = 248
6. RGB → HEX
#38BDF8
Alle Formate
- HEX
- #38bdf8
- RGB
- rgb(56 189 248)
- RGB (legacy)
- rgb(56, 189, 248)
- HSL
- hsl(198.44 93.20% 59.61%) → hsl(198 93% 60%)
- HWB
- hwb(198 22% 3%)
- OKLCH
- oklch(0.754 0.139 232.7) · oklch(75.4% 0.139 232.7)
- OKLab
- oklab(0.754 -0.084 -0.111)
- Lab (D50)
- lab(71.59 -21.72 -40.13)
- LCH (D50)
- lch(71.59 45.63 241.58)
- Display P3
- color(display-p3 0.3854 0.7309 0.9510)
- Linear sRGB
- color(srgb-linear 0.0395 0.5089 0.9387)
Gamut: sRGB und Display P3
#38BDF8 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.153, Display P3 von 0.165; diese Farbe nutzt 91 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #38bdf8;
color: rgb(56 189 248);
color: hsl(198 93% 60%);
color: oklch(0.754 0.139 232.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.754 0.139 232.7);
}
/* arbitrary values */
class="text-[#38bdf8] bg-[oklch(0.754_0.139_232.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3854 0.7309 0.9510); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #38bdf8 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- deepskyblue#00BFFF
- sky-400#00BCFF
- cyan-500#00B8DB
- v3 cyan-500#06B6D4
- cyan-400#00D3F2
- v3 cyan-400#22D3EE
- v3 blue-400#60A5FA
- sky-500#00A6F4
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #51D1FF · oklch(0.814 0.139 232.7) · ΔL +0.06
- #15AAE4 · oklch(0.694 0.139 232.7) · ΔL −0.06