HEX in HSL: #C27AFF
Auch bekannt als: Tailwind purple-400
Ergebnis
#C27AFF → hsl(272 100% 74%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #c27aff. 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.7608 G = 0.4784 B = 1.0000
2. max, min, Δ
max = 1.0000 min = 0.4784 Δ = max − min = 0.5216
3. L
L = (max + min) / 2 = 0.7392 = 73.92%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.7608 − 0.4784) / 0.5216 + 4) = 272.48°
6. HSL
hsl(272.48 100.00% 73.92%)
Alle Formate
- HEX
- #c27aff
- RGB
- rgb(194 122 255)
- RGB (legacy)
- rgb(194, 122, 255)
- HSL
- hsl(272.48 100.00% 73.92%) → hsl(272 100% 74%)
- HWB
- hwb(272 48% 0%)
- OKLCH
- oklch(0.710 0.196 307.1) · oklch(71.0% 0.196 307.1)
- OKLab
- oklab(0.710 0.118 -0.156)
- Lab (D50)
- lab(63.36 46.71 -56.09)
- LCH (D50)
- lch(63.36 73.00 309.79)
- Display P3
- color(display-p3 0.7208 0.4913 0.9703)
- Linear sRGB
- color(srgb-linear 0.5395 0.1946 1.0000)
Gamut: sRGB und Display P3
#C27AFF 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.196, Display P3 von 0.214; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #c27aff;
color: rgb(194 122 255);
color: hsl(272 100% 74%);
color: oklch(0.710 0.196 307.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.710 0.196 307.1);
}
/* arbitrary values */
class="text-[#c27aff] bg-[oklch(0.710_0.196_307.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7208 0.4913 0.9703); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c27aff calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 purple-400#C084FC
- violet-400#A684FF
- v3 violet-400#A78BFA
- v3 fuchsia-400#E879F9
- orchid#DA70D6
- fuchsia-400#ED6AFF
- violet#EE82EE
- v3 purple-500#A855F7
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #D58DFF · oklch(0.770 0.196 307.1) · ΔL +0.06
- #AF67EA · oklch(0.650 0.196 307.1) · ΔL −0.06