HEX in HSL: #4338CA
Auch bekannt als: Tailwind v3 indigo-700
Ergebnis
#4338CA → hsl(245 58% 51%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #4338ca. 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.2627 G = 0.2196 B = 0.7922
2. max, min, Δ
max = 0.7922 min = 0.2196 Δ = max − min = 0.5725
3. L
L = (max + min) / 2 = 0.5059 = 50.59%
4. S
S = Δ / (1 − |2L − 1|) = 0.5794 = 57.94%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2627 − 0.2196) / 0.5725 + 4) = 244.52°
6. HSL
hsl(244.52 57.94% 50.59%)
Alle Formate
- HEX
- #4338ca
- RGB
- rgb(67 56 202)
- RGB (legacy)
- rgb(67, 56, 202)
- HSL
- hsl(244.52 57.94% 50.59%) → hsl(245 58% 51%)
- HWB
- hwb(245 22% 21%)
- OKLCH
- oklch(0.457 0.215 277.0) · oklch(45.7% 0.215 277.0)
- OKLab
- oklab(0.457 0.026 -0.213)
- Lab (D50)
- lab(33.27 40.13 -75.54)
- LCH (D50)
- lch(33.27 85.54 297.98)
- Display P3
- color(display-p3 0.2557 0.2212 0.7621)
- Linear sRGB
- color(srgb-linear 0.0561 0.0395 0.5906)
Gamut: sRGB und Display P3
#4338CA 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.283, Display P3 von 0.286; diese Farbe nutzt 76 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #4338ca;
color: rgb(67 56 202);
color: hsl(245 58% 51%);
color: oklch(0.457 0.215 277.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.457 0.215 277.0);
}
/* arbitrary values */
class="text-[#4338ca] bg-[oklch(0.457_0.215_277.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2557 0.2212 0.7621); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4338ca calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- indigo-700#432DD7
- blue-800#193CB8
- v3 indigo-600#4F46E5
- v3 blue-700#1D4ED8
- v3 blue-800#1E40AF
- indigo-800#372AAC
- v3 violet-800#5B21B6
- blue-700#1447E6
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #514DDF · oklch(0.517 0.215 277.0) · ΔL +0.06
- #3620B5 · oklch(0.397 0.215 277.0) · ΔL −0.06