HEX in HSL: #38BDF8
Auch bekannt als: Tailwind v3 sky-400
Ergebnis
#38BDF8 → hsl(198 93% 60%)
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. RGB ÷ 255
R = 0.2196 G = 0.7412 B = 0.9725
2. max, min, Δ
max = 0.9725 min = 0.2196 Δ = max − min = 0.7529
3. L
L = (max + min) / 2 = 0.5961 = 59.61%
4. S
S = Δ / (1 − |2L − 1|) = 0.9320 = 93.20%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2196 − 0.7412) / 0.7529 + 4) = 198.44°
6. HSL
hsl(198.44 93.20% 59.61%)
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