#8A56BF#8A56BF
#8A56BF is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.9% C 0.162 H 304.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A56BF |
|---|---|
| RGB | rgb(138, 86, 191) |
| HSL | hsl(270, 45%, 54%) |
| HSV | hsv(270, 55%, 75%) |
| CMYK | cmyk(27.7%, 55%, 0%, 25.1%) |
| CIE-LAB | lab(46.74, 42.10, -47.27) |
| CIE-LCH | lch(46.74, 63.30, 311.69°) |
| OKLab | oklab(55.86% 0.0917 -0.1332) |
| OKLCH | oklch(55.86% 0.162 304.6) |
| XYZ | xyz(23.2109, 15.8205, 51.1110) |
| Luminance | 0.1582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.05
Amethyst
#9B5FC0
ΔE00 4.66
Royal Purple
#7851A9
ΔE00 4.87
Purpley
#8756E4
ΔE00 5.95
Purply
#983FB2
ΔE00 6.42
Light Indigo
#6D5ACF
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A56BF #8BBF56
analogous
#5657BF #8A56BF #BE56BF
triadic
#8A56BF #BF8A56 #56BF8A
tetradic
#8A56BF #BF5657 #8BBF56 #56BFBE
square
#8A56BF #BF5657 #8BBF56 #56BFBE
split-complementary
#8A56BF #BFBE56 #57BF56
monochromatic
#4D2A70 #6B3B9D #8A56BF #A982D0 #C7AFE1
Accessibility & contrast
On white
5.04
#8A56BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#8A56BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A56BF
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A56BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A56BF | 1.00 | 5.04 | 4.16 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#306DC3
Deuteranopia (green-blind)
#426FBC
Tritanopia (blue-blind)
#816A82
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a56bf; /* rgb */ color: rgb(138, 86, 191); /* oklch */ color: oklch(55.9% 0.162 304.6);
Tailwind
colors: {
custom: {
50: '#af87d3',
500: '#8a56bf',
950: '#000000',
},
}SCSS
$custom: #8a56bf; $custom-light: #af87d3; $custom-dark: #000000;
JSON
{
"hex": "#8a56bf",
"rgb": {
"r": 138,
"g": 86,
"b": 191
},
"hsl": {
"h": 269.714,
"s": 45.064,
"l": 54.314
},
"oklch": {
"l": 0.55855,
"c": 0.1617,
"h": 304.6
},
"luminance": 0.1582
}Semantic roles & 50–950 ramp
primary
#8A56BF
secondary
#B9CFA2
accent
#D55395
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110B14
muted
#807C83