#8A5BB2#8A5BB2
#8A5BB2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.138 H 307.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BB2 |
|---|---|
| RGB | rgb(138, 91, 178) |
| HSL | hsl(272, 36%, 53%) |
| HSV | hsv(272, 49%, 70%) |
| CMYK | cmyk(22.5%, 48.9%, 0%, 30.2%) |
| CIE-LAB | lab(47.11, 36.18, -39.11) |
| CIE-LCH | lch(47.11, 53.28, 312.77°) |
| OKLab | oklab(55.89% 0.0838 -0.1094) |
| OKLCH | oklch(55.89% 0.138 307.5) |
| XYZ | xyz(22.2566, 16.1000, 44.0460) |
| Luminance | 0.1610 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.30
Amethyst
#9B5FC0
ΔE00 4.09
Royal Purple
#7851A9
ΔE00 4.78
Deep Lilac
#966EBD
ΔE00 6.45
Purply
#983FB2
ΔE00 7.10
Dark Lavender
#856798
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BB2 #83B25B
analogous
#5E5BB2 #8A5BB2 #B25BAE
triadic
#8A5BB2 #B28A5B #5BB28A
tetradic
#8A5BB2 #B25E5B #83B25B #5BAEB2
square
#8A5BB2 #B25E5B #83B25B #5BAEB2
split-complementary
#8A5BB2 #AEB25B #5BB25E
monochromatic
#4B2F64 #6B428D #8A5BB2 #A885C6 #C5AED9
Accessibility & contrast
On white
4.98
#8A5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.22
#8A5BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BB2
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BB2 | 1.00 | 4.98 | 4.22 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#5170B0
Tritanopia (blue-blind)
#846A7E
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5bb2; /* rgb */ color: rgb(138, 91, 178); /* oklch */ color: oklch(55.9% 0.138 307.5);
Tailwind
colors: {
custom: {
50: '#ae8bc9',
500: '#8a5bb2',
950: '#000000',
},
}SCSS
$custom: #8a5bb2; $custom-light: #ae8bc9; $custom-dark: #000000;
JSON
{
"hex": "#8a5bb2",
"rgb": {
"r": 138,
"g": 91,
"b": 178
},
"hsl": {
"h": 272.414,
"s": 36.1,
"l": 52.745
},
"oklch": {
"l": 0.55894,
"c": 0.13779,
"h": 307.5
},
"luminance": 0.161
}Semantic roles & 50–950 ramp
primary
#8A5BB2
secondary
#B3C7A2
accent
#CC5C8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82