#8A5BB4#8A5BB4
#8A5BB4 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.140 H 306.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BB4 |
|---|---|
| RGB | rgb(138, 91, 180) |
| HSL | hsl(272, 37%, 53%) |
| HSV | hsv(272, 49%, 71%) |
| CMYK | cmyk(23.3%, 49.4%, 0%, 29.4%) |
| CIE-LAB | lab(47.21, 36.65, -40.11) |
| CIE-LCH | lch(47.21, 54.34, 312.42°) |
| OKLab | oklab(56.01% 0.084 -0.1123) |
| OKLCH | oklch(56.01% 0.14 306.8) |
| XYZ | xyz(22.4589, 16.1809, 45.1112) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.14
Amethyst
#9B5FC0
ΔE00 3.98
Royal Purple
#7851A9
ΔE00 4.80
Deep Lilac
#966EBD
ΔE00 6.42
Purply
#983FB2
ΔE00 7.12
Purpley
#8756E4
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BB4 #85B45B
analogous
#5D5BB4 #8A5BB4 #B45BB1
triadic
#8A5BB4 #B48A5B #5BB48A
tetradic
#8A5BB4 #B45D5B #85B45B #5BB1B4
square
#8A5BB4 #B45D5B #85B45B #5BB1B4
split-complementary
#8A5BB4 #B1B45B #5BB45D
monochromatic
#4C2F66 #6B4290 #8A5BB4 #A885C7 #C6AFDA
Accessibility & contrast
On white
4.96
#8A5BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#8A5BB4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BB4
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BB4 | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#436EB7
Deuteranopia (green-blind)
#5070B2
Tritanopia (blue-blind)
#846A7F
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5bb4; /* rgb */ color: rgb(138, 91, 180); /* oklch */ color: oklch(56.0% 0.140 306.8);
Tailwind
colors: {
custom: {
50: '#ae8bcb',
500: '#8a5bb4',
950: '#000000',
},
}SCSS
$custom: #8a5bb4; $custom-light: #ae8bcb; $custom-dark: #000000;
JSON
{
"hex": "#8a5bb4",
"rgb": {
"r": 138,
"g": 91,
"b": 180
},
"hsl": {
"h": 271.685,
"s": 37.238,
"l": 53.137
},
"oklch": {
"l": 0.56007,
"c": 0.14025,
"h": 306.8
},
"luminance": 0.16181
}Semantic roles & 50–950 ramp
primary
#8A5BB4
secondary
#B4C9A2
accent
#CD5B91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82