#8A51BB#8A51BB
#8A51BB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.165 H 306.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #8A51BB |
|---|---|
| RGB | rgb(138, 81, 187) |
| HSL | hsl(272, 44%, 53%) |
| HSV | hsv(272, 57%, 73%) |
| CMYK | cmyk(26.2%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(45.46, 43.87, -46.97) |
| CIE-LCH | lch(45.46, 64.28, 313.05°) |
| OKLab | oklab(54.84% 0.0981 -0.1323) |
| OKLCH | oklch(54.84% 0.165 306.6) |
| XYZ | xyz(22.3914, 14.8762, 48.6959) |
| Luminance | 0.1488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.94
Royal Purple
#7851A9
ΔE00 4.30
Purply
#983FB2
ΔE00 5.09
Amethyst
#9B5FC0
ΔE00 5.51
Darkorchid
#9932CC
ΔE00 6.29
Purpley
#8756E4
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A51BB #82BB51
analogous
#5551BB #8A51BB #BB51B7
triadic
#8A51BB #BB8A51 #51BB8A
tetradic
#8A51BB #BB5551 #82BB51 #51B7BB
square
#8A51BB #BB5551 #82BB51 #51B7BB
split-complementary
#8A51BB #B7BB51 #51BB55
monochromatic
#4B2969 #6B3A95 #8A51BB #A87DCC #C5A9DD
Accessibility & contrast
On white
5.28
#8A51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#8A51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A51BB
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A51BB | 1.00 | 5.28 | 3.98 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A6ABE
Deuteranopia (green-blind)
#406CB8
Tritanopia (blue-blind)
#82657E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a51bb; /* rgb */ color: rgb(138, 81, 187); /* oklch */ color: oklch(54.8% 0.165 306.6);
Tailwind
colors: {
custom: {
50: '#af84d0',
500: '#8a51bb',
950: '#000000',
},
}SCSS
$custom: #8a51bb; $custom-light: #af84d0; $custom-dark: #000000;
JSON
{
"hex": "#8a51bb",
"rgb": {
"r": 138,
"g": 81,
"b": 187
},
"hsl": {
"h": 272.264,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.54843,
"c": 0.16472,
"h": 306.6
},
"luminance": 0.14876
}Semantic roles & 50–950 ramp
primary
#8A51BB
secondary
#B2CB9D
accent
#D4548F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82