#8A51DC#8A51DC
#8A51DC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.203 H 298.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #8A51DC |
|---|---|
| RGB | rgb(138, 81, 220) |
| HSL | hsl(265, 67%, 59%) |
| HSV | hsv(265, 63%, 86%) |
| CMYK | cmyk(37.3%, 63.2%, 0%, 13.7%) |
| CIE-LAB | lab(47.57, 51.99, -62.59) |
| CIE-LCH | lch(47.57, 81.37, 309.71°) |
| OKLab | oklab(57.05% 0.0972 -0.1781) |
| OKLCH | oklch(57.05% 0.203 298.6) |
| XYZ | xyz(26.3387, 16.4551, 69.4848) |
| Luminance | 0.1646 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.90
Lightish Purple
#A552E6
ΔE00 5.15
Light Indigo
#6D5ACF
ΔE00 5.95
Slate Blue
#6A5ACD
ΔE00 6.54
Lighter Purple
#A55AF4
ΔE00 6.61
Bluish Purple
#703BE7
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A51DC #A3DC51
analogous
#515EDC #8A51DC #CF51DC
triadic
#8A51DC #DC8A51 #51DC8A
tetradic
#8A51DC #DC515E #A3DC51 #51DCCF
square
#8A51DC #DC515E #A3DC51 #51DCCF
split-complementary
#8A51DC #DCCF51 #5EDC51
monochromatic
#4F1E95 #6A28C8 #8A51DC #AC84E6 #CFB7F0
Accessibility & contrast
On white
4.89
#8A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#8A51DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A51DC
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A51DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A51DC | 1.00 | 4.89 | 4.29 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#036FD9
Tritanopia (blue-blind)
#77708F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #8a51dc; /* rgb */ color: rgb(138, 81, 220); /* oklch */ color: oklch(57.0% 0.203 298.6);
Tailwind
colors: {
custom: {
50: '#b285e8',
500: '#8a51dc',
950: '#000000',
},
}SCSS
$custom: #8a51dc; $custom-light: #b285e8; $custom-dark: #000000;
JSON
{
"hex": "#8a51dc",
"rgb": {
"r": 138,
"g": 81,
"b": 220
},
"hsl": {
"h": 264.604,
"s": 66.507,
"l": 59.02
},
"oklch": {
"l": 0.57046,
"c": 0.20295,
"h": 298.6
},
"luminance": 0.16455
}Semantic roles & 50–950 ramp
primary
#8A51DC
secondary
#C9E0A9
accent
#E93EA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84