#8A5BEA#8A5BEA
#8A5BEA is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.5% C 0.206 H 294.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BEA |
|---|---|
| RGB | rgb(138, 91, 234) |
| HSL | hsl(260, 77%, 64%) |
| HSV | hsv(260, 61%, 92%) |
| CMYK | cmyk(41%, 61.1%, 0%, 8.2%) |
| CIE-LAB | lab(50.48, 50.31, -65.79) |
| CIE-LCH | lch(50.48, 82.83, 307.41°) |
| OKLab | oklab(59.46% 0.0852 -0.1876) |
| OKLCH | oklch(59.46% 0.206 294.4) |
| XYZ | xyz(29.0696, 18.8253, 79.9280) |
| Luminance | 0.1883 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.76
Mediumslateblue
#7B68EE
ΔE00 4.60
Lighter Purple
#A55AF4
ΔE00 4.87
Lightish Purple
#A552E6
ΔE00 5.17
Light Indigo
#6D5ACF
ΔE00 6.39
Mediumpurple
#9370DB
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BEA #BBEA5B
analogous
#5B73EA #8A5BEA #D15BEA
triadic
#8A5BEA #EA8A5B #5BEA8A
tetradic
#8A5BEA #EA5B73 #BBEA5B #5BEAD1
square
#8A5BEA #EA5B73 #BBEA5B #5BEAD1
split-complementary
#8A5BEA #EAD15B #73EA5B
monochromatic
#4A17B4 #6325E3 #8A5BEA #B191F1 #D7C8F8
Accessibility & contrast
On white
4.41
#8A5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#8A5BEA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5BEA
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BEA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5BEA | 1.00 | 4.41 | 4.77 | 4.77 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#717B9A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #8a5bea; /* rgb */ color: rgb(138, 91, 234); /* oklch */ color: oklch(59.5% 0.206 294.4);
Tailwind
colors: {
custom: {
50: '#b28bf2',
500: '#8a5bea',
950: '#000000',
},
}SCSS
$custom: #8a5bea; $custom-light: #b28bf2; $custom-dark: #000000;
JSON
{
"hex": "#8a5bea",
"rgb": {
"r": 138,
"g": 91,
"b": 234
},
"hsl": {
"h": 259.72,
"s": 77.297,
"l": 63.725
},
"oklch": {
"l": 0.59463,
"c": 0.20602,
"h": 294.4
},
"luminance": 0.18826
}Semantic roles & 50–950 ramp
primary
#8A5BEA
secondary
#D9EAB7
accent
#DA0C96
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85