#8A56BB#8A56BB
#8A56BB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.6% C 0.157 H 305.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #8A56BB |
|---|---|
| RGB | rgb(138, 86, 187) |
| HSL | hsl(271, 43%, 54%) |
| HSV | hsv(271, 54%, 73%) |
| CMYK | cmyk(26.2%, 54%, 0%, 26.7%) |
| CIE-LAB | lab(46.51, 41.14, -45.31) |
| CIE-LCH | lch(46.51, 61.20, 312.24°) |
| OKLab | oklab(55.61% 0.0915 -0.1274) |
| OKLCH | oklch(55.61% 0.157 305.7) |
| XYZ | xyz(22.7768, 15.6469, 48.8243) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.69
Royal Purple
#7851A9
ΔE00 4.50
Amethyst
#9B5FC0
ΔE00 4.56
Purply
#983FB2
ΔE00 6.13
Purpley
#8756E4
ΔE00 6.67
Darkorchid
#9932CC
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A56BB #87BB56
analogous
#5756BB #8A56BB #BB56B9
triadic
#8A56BB #BB8A56 #56BB8A
tetradic
#8A56BB #BB5756 #87BB56 #56B9BB
square
#8A56BB #BB5756 #87BB56 #56B9BB
split-complementary
#8A56BB #B9BB56 #56BB57
monochromatic
#4C2B6B #6B3D97 #8A56BB #A882CD #C6ADDE
Accessibility & contrast
On white
5.09
#8A56BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#8A56BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A56BB
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A56BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A56BB | 1.00 | 5.09 | 4.13 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#346DBE
Deuteranopia (green-blind)
#456EB9
Tritanopia (blue-blind)
#826980
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8a56bb; /* rgb */ color: rgb(138, 86, 187); /* oklch */ color: oklch(55.6% 0.157 305.7);
Tailwind
colors: {
custom: {
50: '#af87d0',
500: '#8a56bb',
950: '#000000',
},
}SCSS
$custom: #8a56bb; $custom-light: #af87d0; $custom-dark: #000000;
JSON
{
"hex": "#8a56bb",
"rgb": {
"r": 138,
"g": 86,
"b": 187
},
"hsl": {
"h": 270.891,
"s": 42.616,
"l": 53.529
},
"oklch": {
"l": 0.55611,
"c": 0.15689,
"h": 305.7
},
"luminance": 0.15647
}Semantic roles & 50–950 ramp
primary
#8A56BB
secondary
#B6CCA1
accent
#D25592
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82