#8e2ab4
a dark, vivid violet · warm · closest name: purple
RGB
142, 42, 180
HSL
284°, 62%, 44%
CMYK
21, 77, 0, 29
Luminance
0.1070
Every format
| HEX | #8e2ab4 |
| RGB | rgb(142, 42, 180) |
| HSL | hsl(284, 62%, 44%) |
| CMYK | cmyk(21%, 77%, 0%, 29%) |
| LAB | lab(39.1 61.1 -53.1) |
| LCH | lch(39.1 80.9 319.0) |
| OKLCH | oklch(0.502 0.210 314.6) |
Copy-ready code
/* CSS */
color: #8e2ab4;
background-color: #8e2ab4;
/* Tailwind (arbitrary) */
class="text-[#8e2ab4] bg-[#8e2ab4]"
/* SCSS */
$brand: #8e2ab4;
/* SwiftUI */
Color(red: 0.557, green: 0.165, blue: 0.706)
/* Android */
Color.parseColor("#8e2ab4")Accessibility — WCAG contrast
Aa
#8e2ab4 on white: 6.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8e2ab4 on black: 3.14:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red55.7%
Green16.5%
Blue70.6%
CMYK percentages
Cyan21.1%
Magenta76.7%
Yellow0.0%
Key (black)29.4%
Color previews
#8e2ab4 text on a black background
contrast 3.14:1
Card sample
#8e2ab4 text on a white background
contrast 6.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8e2ab4;
Background color
Panel with #8e2ab4 background
background-color: #8e2ab4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8e2ab4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(142, 42, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(142, 42, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8e2ab4; background: linear-gradient(135deg, #8e2ab4, #B42A7E);