#8A57BA#8A57BA
#8A57BA is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.7% C 0.154 H 305.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8A57BA |
|---|---|
| RGB | rgb(138, 87, 186) |
| HSL | hsl(271, 42%, 54%) |
| HSV | hsv(271, 53%, 73%) |
| CMYK | cmyk(25.8%, 53.2%, 0%, 27.1%) |
| CIE-LAB | lab(46.66, 40.34, -44.48) |
| CIE-LCH | lch(46.66, 60.05, 312.21°) |
| OKLab | oklab(55.71% 0.0901 -0.125) |
| OKLCH | oklch(55.71% 0.154 305.8) |
| XYZ | xyz(22.7505, 15.7650, 48.2893) |
| Luminance | 0.1577 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.36
Amethyst
#9B5FC0
ΔE00 4.39
Royal Purple
#7851A9
ΔE00 4.52
Purply
#983FB2
ΔE00 6.31
Purpley
#8756E4
ΔE00 6.85
Deep Lilac
#966EBD
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A57BA #87BA57
analogous
#5857BA #8A57BA #BA57B8
triadic
#8A57BA #BA8A57 #57BA8A
tetradic
#8A57BA #BA5857 #87BA57 #57B8BA
square
#8A57BA #BA5857 #87BA57 #57B8BA
split-complementary
#8A57BA #B8BA57 #57BA58
monochromatic
#4C2C6B #6B3E96 #8A57BA #A882CC #C6AEDE
Accessibility & contrast
On white
5.06
#8A57BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#8A57BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A57BA
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A57BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A57BA | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#376DBD
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#826980
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a57ba; /* rgb */ color: rgb(138, 87, 186); /* oklch */ color: oklch(55.7% 0.154 305.8);
Tailwind
colors: {
custom: {
50: '#af88cf',
500: '#8a57ba',
950: '#000000',
},
}SCSS
$custom: #8a57ba; $custom-light: #af88cf; $custom-dark: #000000;
JSON
{
"hex": "#8a57ba",
"rgb": {
"r": 138,
"g": 87,
"b": 186
},
"hsl": {
"h": 270.909,
"s": 41.772,
"l": 53.529
},
"oklch": {
"l": 0.55708,
"c": 0.1541,
"h": 305.8
},
"luminance": 0.15765
}Semantic roles & 50–950 ramp
primary
#8A57BA
secondary
#B6CCA1
accent
#D25692
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82