HEX in OKLCH: #59168B
Auch bekannt als: Tailwind purple-900
Ergebnis
#59168B → oklch(0.380 0.176 304.8)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #59168b. 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: 89/255 = 0.34902 → 0.099899 (((x + 0.055) / 1.055)^2.4) G: 22/255 = 0.08627 → 0.008023 (((x + 0.055) / 1.055)^2.4) B: 139/255 = 0.54510 → 0.258183 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.058766 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.054358 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.173731
3. cube root
l′ = ∛0.058766 = 0.388784 m′ = ∛0.054358 = 0.378811 s′ = ∛0.173731 = 0.557989
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.38018 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.10046 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.14464
5. Oklab → OKLCH
C = √(a² + b²) = 0.17611 H = atan2(b, a) = 304.783° L = 0.38018
6. OKLCH
oklch(0.38018 0.17611 304.783) rounded: oklch(0.380 0.176 304.8)
Alle Formate
- HEX
- #59168b
- RGB
- rgb(89 22 139)
- RGB (legacy)
- rgb(89, 22, 139)
- HSL
- hsl(274.36 72.67% 31.57%) → hsl(274 73% 32%)
- HWB
- hwb(274 9% 45%)
- OKLCH
- oklch(0.380 0.176 304.8) · oklch(38.0% 0.176 304.8)
- OKLab
- oklab(0.380 0.100 -0.145)
- Lab (D50)
- lab(24.84 45.27 -51.43)
- LCH (D50)
- lch(24.84 68.51 311.35)
- Display P3
- color(display-p3 0.3201 0.1066 0.5244)
- Linear sRGB
- color(srgb-linear 0.0999 0.0080 0.2582)
Gamut: sRGB und Display P3
#59168B 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.198, Display P3 von 0.207; diese Farbe nutzt 89 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #59168b;
color: rgb(89 22 139);
color: hsl(274 73% 32%);
color: oklch(0.380 0.176 304.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.380 0.176 304.8);
}
/* arbitrary values */
class="text-[#59168b] bg-[oklch(0.380_0.176_304.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3201 0.1066 0.5244); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #59168b calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 purple-900#581C87
- v3 violet-900#4C1D95
- violet-900#4D179A
- indigo#4B0082
- rebeccapurple#663399
- v3 purple-800#6B21A8
- fuchsia-900#721378
- v3 fuchsia-900#701A75
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #6A2C9E · oklch(0.440 0.176 304.8) · ΔL +0.06
- #490078 · oklch(0.320 0.176 304.8) · ΔL −0.06