#8A56C8#8A56C8
#8A56C8 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.172 H 302.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8A56C8 |
|---|---|
| RGB | rgb(138, 86, 200) |
| HSL | hsl(267, 51%, 56%) |
| HSV | hsv(267, 57%, 78%) |
| CMYK | cmyk(31%, 57%, 0%, 21.6%) |
| CIE-LAB | lab(47.27, 44.31, -51.61) |
| CIE-LCH | lch(47.27, 68.03, 310.65°) |
| OKLab | oklab(56.42% 0.092 -0.1459) |
| OKLCH | oklch(56.42% 0.172 302.2) |
| XYZ | xyz(24.2319, 16.2289, 56.4883) |
| Luminance | 0.1623 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.13
Purpley
#8756E4
ΔE00 4.42
Amethyst
#9B5FC0
ΔE00 5.17
Royal Purple
#7851A9
ΔE00 5.92
Lightish Purple
#A552E6
ΔE00 6.13
Light Indigo
#6D5ACF
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A56C8 #94C856
analogous
#565BC8 #8A56C8 #C356C8
triadic
#8A56C8 #C88A56 #56C88A
tetradic
#8A56C8 #C8565B #94C856 #56C8C3
square
#8A56C8 #C8565B #94C856 #56C8C3
split-complementary
#8A56C8 #C8C356 #5BC856
monochromatic
#4E287B #6B37AA #8A56C8 #AA84D7 #CAB2E6
Accessibility & contrast
On white
4.95
#8A56C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#8A56C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A56C8
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A56C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A56C8 | 1.00 | 4.95 | 4.25 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#256FCC
Deuteranopia (green-blind)
#3A70C5
Tritanopia (blue-blind)
#7E6D87
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a56c8; /* rgb */ color: rgb(138, 86, 200); /* oklch */ color: oklch(56.4% 0.172 302.2);
Tailwind
colors: {
custom: {
50: '#b088d9',
500: '#8a56c8',
950: '#000000',
},
}SCSS
$custom: #8a56c8; $custom-light: #b088d9; $custom-dark: #000000;
JSON
{
"hex": "#8a56c8",
"rgb": {
"r": 138,
"g": 86,
"b": 200
},
"hsl": {
"h": 267.368,
"s": 50.893,
"l": 56.078
},
"oklch": {
"l": 0.56421,
"c": 0.17248,
"h": 302.2
},
"luminance": 0.16229
}Semantic roles & 50–950 ramp
primary
#8A56C8
secondary
#BFD4A5
accent
#DA4D9A
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83