#8A56D2#8A56D2
#8A56D2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.1% C 0.184 H 299.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #8A56D2 |
|---|---|
| RGB | rgb(138, 86, 210) |
| HSL | hsl(265, 58%, 58%) |
| HSV | hsv(265, 59%, 82%) |
| CMYK | cmyk(34.3%, 59%, 0%, 17.6%) |
| CIE-LAB | lab(47.89, 46.82, -56.36) |
| CIE-LCH | lch(47.89, 73.27, 309.72°) |
| OKLab | oklab(57.08% 0.0919 -0.1598) |
| OKLCH | oklch(57.08% 0.184 299.9) |
| XYZ | xyz(25.4391, 16.7118, 62.8457) |
| Luminance | 0.1671 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.82
Lightish Purple
#A552E6
ΔE00 5.35
Deep Lavender
#8D5EB7
ΔE00 5.46
Light Indigo
#6D5ACF
ΔE00 5.70
Amethyst
#9B5FC0
ΔE00 6.03
Slate Blue
#6A5ACD
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A56D2 #9ED256
analogous
#5660D2 #8A56D2 #C856D2
triadic
#8A56D2 #D28A56 #56D28A
tetradic
#8A56D2 #D25660 #9ED256 #56D2C8
square
#8A56D2 #D25660 #9ED256 #56D2C8
split-complementary
#8A56D2 #D2C856 #60D256
monochromatic
#4F2589 #6A31B9 #8A56D2 #AB86DF #CDB7EC
Accessibility & contrast
On white
4.84
#8A56D2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#8A56D2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A56D2
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A56D2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A56D2 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F71D6
Deuteranopia (green-blind)
#2D71CF
Tritanopia (blue-blind)
#7B708C
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #8a56d2; /* rgb */ color: rgb(138, 86, 210); /* oklch */ color: oklch(57.1% 0.184 299.9);
Tailwind
colors: {
custom: {
50: '#b088e0',
500: '#8a56d2',
950: '#000000',
},
}SCSS
$custom: #8a56d2; $custom-light: #b088e0; $custom-dark: #000000;
JSON
{
"hex": "#8a56d2",
"rgb": {
"r": 138,
"g": 86,
"b": 210
},
"hsl": {
"h": 265.161,
"s": 57.944,
"l": 58.039
},
"oklch": {
"l": 0.57075,
"c": 0.1844,
"h": 299.9
},
"luminance": 0.16712
}Semantic roles & 50–950 ramp
primary
#8A56D2
secondary
#C6DBA9
accent
#E147A0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83