HEX in OKLCH: #A5B4FC
Auch bekannt als: Tailwind v3 indigo-300
Ergebnis
#A5B4FC → oklch(0.785 0.104 274.7)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #a5b4fc. 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. sRGB → linear
R: 165/255 = 0.64706 → 0.376262 (((x + 0.055) / 1.055)^2.4) G: 180/255 = 0.70588 → 0.456411 (((x + 0.055) / 1.055)^2.4) B: 252/255 = 0.98824 → 0.973445 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.449971 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.494955 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.775054
3. cube root
l′ = ∛0.449971 = 0.766293 m′ = ∛0.494955 = 0.791022 s′ = ∛0.775054 = 0.918567
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.78530 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00856 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.10378
5. Oklab → OKLCH
C = √(a² + b²) = 0.10414 H = atan2(b, a) = 274.713° L = 0.78530
6. OKLCH
oklch(0.78530 0.10414 274.713) rounded: oklch(0.785 0.104 274.7)
Alle Formate
- HEX
- #a5b4fc
- RGB
- rgb(165 180 252)
- RGB (legacy)
- rgb(165, 180, 252)
- HSL
- hsl(229.66 93.55% 81.76%) → hsl(230 94% 82%)
- HWB
- hwb(230 65% 1%)
- OKLCH
- oklch(0.785 0.104 274.7) · oklch(78.5% 0.104 274.7)
- OKLab
- oklab(0.785 0.009 -0.104)
- Lab (D50)
- lab(74.18 7.30 -37.79)
- LCH (D50)
- lch(74.18 38.49 280.93)
- Display P3
- color(display-p3 0.6580 0.7040 0.9667)
- Linear sRGB
- color(srgb-linear 0.3763 0.4564 0.9734)
Gamut: sRGB und Display P3
#A5B4FC 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.109, Display P3 von 0.119; diese Farbe nutzt 96 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #a5b4fc;
color: rgb(165 180 252);
color: hsl(230 94% 82%);
color: oklch(0.785 0.104 274.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.785 0.104 274.7);
}
/* arbitrary values */
class="text-[#a5b4fc] bg-[oklch(0.785_0.104_274.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6580 0.7040 0.9667); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a5b4fc calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- indigo-300#A3B3FF
- v3 violet-300#C4B5FD
- violet-300#C4B4FF
- v3 blue-300#93C5FD
- blue-300#8EC5FF
- lightsteelblue#B0C4DE
- v3 purple-300#D8B4FE
- lightskyblue#87CEFA
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #B8C7FF · oklch(0.845 0.104 274.7) · ΔL +0.06
- #93A1E8 · oklch(0.725 0.104 274.7) · ΔL −0.06