#8A51CD#8A51CD
#8A51CD is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.0% C 0.186 H 301.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8A51CD |
|---|---|
| RGB | rgb(138, 81, 205) |
| HSL | hsl(268, 55%, 56%) |
| HSV | hsv(268, 60%, 80%) |
| CMYK | cmyk(32.7%, 60.5%, 0%, 19.6%) |
| CIE-LAB | lab(46.57, 48.24, -55.62) |
| CIE-LCH | lch(46.57, 73.62, 310.94°) |
| OKLab | oklab(56.01% 0.0981 -0.1577) |
| OKLCH | oklch(56.01% 0.186 301.9) |
| XYZ | xyz(24.4405, 15.6958, 59.4878) |
| Luminance | 0.1570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.92
Deep Lavender
#8D5EB7
ΔE00 5.51
Lightish Purple
#A552E6
ΔE00 5.94
Darkorchid
#9932CC
ΔE00 6.10
Light Indigo
#6D5ACF
ΔE00 6.22
Amethyst
#9B5FC0
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A51CD #94CD51
analogous
#5156CD #8A51CD #C851CD
triadic
#8A51CD #CD8A51 #51CD8A
tetradic
#8A51CD #CD5156 #94CD51 #51CDC8
square
#8A51CD #CD5156 #94CD51 #51CDC8
split-complementary
#8A51CD #CDC851 #56CD51
monochromatic
#4E257F #6B32AF #8A51CD #AA81DB #CAB0E8
Accessibility & contrast
On white
5.07
#8A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.14
#8A51CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A51CD
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A51CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A51CD | 1.00 | 5.07 | 4.14 | 5.07 |
| #FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#016DD1
Deuteranopia (green-blind)
#2C6ECA
Tritanopia (blue-blind)
#7D6B87
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8a51cd; /* rgb */ color: rgb(138, 81, 205); /* oklch */ color: oklch(56.0% 0.186 301.9);
Tailwind
colors: {
custom: {
50: '#b084dd',
500: '#8a51cd',
950: '#000000',
},
}SCSS
$custom: #8a51cd; $custom-light: #b084dd; $custom-dark: #000000;
JSON
{
"hex": "#8a51cd",
"rgb": {
"r": 138,
"g": 81,
"b": 205
},
"hsl": {
"h": 267.581,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.56009,
"c": 0.18567,
"h": 301.9
},
"luminance": 0.15696
}Semantic roles & 50–950 ramp
primary
#8A51CD
secondary
#BFD7A3
accent
#DF499A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83