#8A4EE2#8A4EE2
#8A4EE2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.1% C 0.214 H 297.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EE2 |
|---|---|
| RGB | rgb(138, 78, 226) |
| HSL | hsl(264, 72%, 60%) |
| HSV | hsv(264, 65%, 89%) |
| CMYK | cmyk(38.9%, 65.5%, 0%, 11.4%) |
| CIE-LAB | lab(47.42, 55.03, -66.24) |
| CIE-LCH | lch(47.42, 86.11, 309.72°) |
| OKLab | oklab(57.07% 0.0999 -0.1889) |
| OKLCH | oklch(57.07% 0.214 297.9) |
| XYZ | xyz(26.9296, 16.3426, 73.6724) |
| Luminance | 0.1634 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.01
Lightish Purple
#A552E6
ΔE00 5.28
Bluish Purple
#703BE7
ΔE00 6.22
Blueviolet
#8A2BE2
ΔE00 6.25
Light Indigo
#6D5ACF
ΔE00 6.31
Lighter Purple
#A55AF4
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EE2 #A6E24E
analogous
#4E5CE2 #8A4EE2 #D44EE2
triadic
#8A4EE2 #E28A4E #4EE28A
tetradic
#8A4EE2 #E24E5C #A6E24E #4EE2D4
square
#8A4EE2 #E24E5C #A6E24E #4EE2D4
split-complementary
#8A4EE2 #E2D44E #5CE24E
monochromatic
#4E1A9C #6922D1 #8A4EE2 #AD83EB #D0B7F3
Accessibility & contrast
On white
4.92
#8A4EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#8A4EE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EE2
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EE2 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#757091
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a4ee2; /* rgb */ color: rgb(138, 78, 226); /* oklch */ color: oklch(57.1% 0.214 297.9);
Tailwind
colors: {
custom: {
50: '#b283ec',
500: '#8a4ee2',
950: '#000000',
},
}SCSS
$custom: #8a4ee2; $custom-light: #b283ec; $custom-dark: #000000;
JSON
{
"hex": "#8a4ee2",
"rgb": {
"r": 138,
"g": 78,
"b": 226
},
"hsl": {
"h": 264.324,
"s": 71.845,
"l": 59.608
},
"oklch": {
"l": 0.57073,
"c": 0.21363,
"h": 297.9
},
"luminance": 0.16343
}Semantic roles & 50–950 ramp
primary
#8A4EE2
secondary
#CBE3A9
accent
#EF39A5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84