HEX in HSL: #6366F1
Auch bekannt als: Tailwind v3 indigo-500
Ergebnis
#6366F1 → hsl(239 84% 67%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #6366f1. 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.3882 G = 0.4000 B = 0.9451
2. max, min, Δ
max = 0.9451 min = 0.3882 Δ = max − min = 0.5569
3. L
L = (max + min) / 2 = 0.6667 = 66.67%
4. S
S = Δ / (1 − |2L − 1|) = 0.8353 = 83.53%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3882 − 0.4000) / 0.5569 + 4) = 238.73°
6. HSL
hsl(238.73 83.53% 66.67%)
Alle Formate
- HEX
- #6366f1
- RGB
- rgb(99 102 241)
- RGB (legacy)
- rgb(99, 102, 241)
- HSL
- hsl(238.73 83.53% 66.67%) → hsl(239 84% 67%)
- HWB
- hwb(239 39% 5%)
- OKLCH
- oklch(0.585 0.204 277.1) · oklch(58.5% 0.204 277.1)
- OKLab
- oklab(0.585 0.025 -0.202)
- Lab (D50)
- lab(49.05 30.34 -71.87)
- LCH (D50)
- lch(49.05 78.02 292.89)
- Display P3
- color(display-p3 0.3904 0.3996 0.9126)
- Linear sRGB
- color(srgb-linear 0.1248 0.1329 0.8796)
Gamut: sRGB und Display P3
#6366F1 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.229, Display P3 von 0.246; diese Farbe nutzt 89 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #6366f1;
color: rgb(99 102 241);
color: hsl(239 84% 67%);
color: oklch(0.585 0.204 277.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.585 0.204 277.1);
}
/* arbitrary values */
class="text-[#6366f1] bg-[oklch(0.585_0.204_277.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3904 0.3996 0.9126); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6366f1 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- indigo-500#615FFF
- mediumslateblue#7B68EE
- royalblue#4169E1
- slateblue#6A5ACD
- v3 violet-500#8B5CF6
- v3 blue-600#2563EB
- v3 blue-500#3B82F6
- blue-500#2B7FFF
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #7379FF · oklch(0.645 0.204 277.1) · ΔL +0.06
- #5452DC · oklch(0.525 0.204 277.1) · ΔL −0.06