RGB in HEX: #818CF8
Auch bekannt als: Tailwind v3 indigo-400
Ergebnis
rgb(129 140 248) → #818CF8
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #818cf8. 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. base 10 → base 16
R = 129 = 8×16 + 1 → 81 G = 140 = 8×16 + 12 → 8C B = 248 = 15×16 + 8 → F8
2. pairs → HEX
81 8C F8 → #818CF8
Alle Formate
- HEX
- #818cf8
- RGB
- rgb(129 140 248)
- RGB (legacy)
- rgb(129, 140, 248)
- HSL
- hsl(234.45 89.47% 73.92%) → hsl(234 89% 74%)
- HWB
- hwb(234 51% 3%)
- OKLCH
- oklch(0.680 0.158 276.9) · oklch(68.0% 0.158 276.9)
- OKLab
- oklab(0.680 0.019 -0.157)
- Lab (D50)
- lab(61.11 17.73 -56.28)
- LCH (D50)
- lch(61.11 59.00 287.48)
- Display P3
- color(display-p3 0.5139 0.5477 0.9441)
- Linear sRGB
- color(srgb-linear 0.2195 0.2623 0.9387)
Gamut: sRGB und Display P3
#818CF8 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.170, Display P3 von 0.184; diese Farbe nutzt 93 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #818cf8;
color: rgb(129 140 248);
color: hsl(234 89% 74%);
color: oklch(0.680 0.158 276.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.680 0.158 276.9);
}
/* arbitrary values */
class="text-[#818cf8] bg-[oklch(0.680_0.158_276.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5139 0.5477 0.9441); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #818cf8 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- indigo-400#7C86FF
- cornflowerblue#6495ED
- v3 violet-400#A78BFA
- violet-400#A684FF
- blue-400#51A2FF
- v3 blue-400#60A5FA
- mediumpurple#9370DB
- v3 blue-500#3B82F6
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #939FFF · oklch(0.740 0.158 276.9) · ΔL +0.06
- #7079E3 · oklch(0.620 0.158 276.9) · ΔL −0.06