#8A51BF#8A51BF
#8A51BF is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.169 H 305.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8A51BF |
|---|---|
| RGB | rgb(138, 81, 191) |
| HSL | hsl(271, 46%, 53%) |
| HSV | hsv(271, 58%, 75%) |
| CMYK | cmyk(27.7%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(45.70, 44.83, -48.92) |
| CIE-LCH | lch(45.70, 66.35, 312.50°) |
| OKLab | oklab(55.09% 0.0982 -0.138) |
| OKLCH | oklch(55.09% 0.169 305.4) |
| XYZ | xyz(22.8256, 15.0499, 50.9825) |
| Luminance | 0.1505 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.19
Royal Purple
#7851A9
ΔE00 4.68
Purply
#983FB2
ΔE00 5.44
Amethyst
#9B5FC0
ΔE00 5.58
Darkorchid
#9932CC
ΔE00 6.11
Purpley
#8756E4
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A51BF #86BF51
analogous
#5351BF #8A51BF #BF51BD
triadic
#8A51BF #BF8A51 #51BF8A
tetradic
#8A51BF #BF5351 #86BF51 #51BDBF
square
#8A51BF #BF5351 #86BF51 #51BDBF
split-complementary
#8A51BF #BDBF51 #51BF53
monochromatic
#4C286D #6B399A #8A51BF #A87ECF #C6AAE0
Accessibility & contrast
On white
5.24
#8A51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#8A51BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A51BF
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A51BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A51BF | 1.00 | 5.24 | 4.01 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#256AC3
Deuteranopia (green-blind)
#3C6CBC
Tritanopia (blue-blind)
#816680
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a51bf; /* rgb */ color: rgb(138, 81, 191); /* oklch */ color: oklch(55.1% 0.169 305.4);
Tailwind
colors: {
custom: {
50: '#af84d3',
500: '#8a51bf',
950: '#000000',
},
}SCSS
$custom: #8a51bf; $custom-light: #af84d3; $custom-dark: #000000;
JSON
{
"hex": "#8a51bf",
"rgb": {
"r": 138,
"g": 81,
"b": 191
},
"hsl": {
"h": 271.091,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.55094,
"c": 0.16938,
"h": 305.4
},
"luminance": 0.1505
}Semantic roles & 50–950 ramp
primary
#8A51BF
secondary
#B5CE9E
accent
#D65292
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83