#8A5CB1#8A5CB1
#8A5CB1 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.135 H 307.6°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5CB1 |
|---|---|
| RGB | rgb(138, 92, 177) |
| HSL | hsl(272, 35%, 53%) |
| HSV | hsv(272, 48%, 69%) |
| CMYK | cmyk(22%, 48%, 0%, 30.6%) |
| CIE-LAB | lab(47.28, 35.37, -38.26) |
| CIE-LCH | lch(47.28, 52.10, 312.76°) |
| OKLab | oklab(56.01% 0.0822 -0.1069) |
| OKLCH | oklch(56.01% 0.135 307.6) |
| XYZ | xyz(22.2426, 16.2321, 43.5478) |
| Luminance | 0.1623 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.27
Amethyst
#9B5FC0
ΔE00 4.09
Royal Purple
#7851A9
ΔE00 4.97
Deep Lilac
#966EBD
ΔE00 6.20
Purply
#983FB2
ΔE00 7.38
Dark Lavender
#856798
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5CB1 #83B15C
analogous
#5F5CB1 #8A5CB1 #B15CAD
triadic
#8A5CB1 #B18A5C #5CB18A
tetradic
#8A5CB1 #B15F5C #83B15C #5CADB1
square
#8A5CB1 #B15F5C #83B15C #5CADB1
split-complementary
#8A5CB1 #ADB15C #5CB15F
monochromatic
#4B2F63 #6B438D #8A5CB1 #A885C5 #C5AFD9
Accessibility & contrast
On white
4.95
#8A5CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#8A5CB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5CB1
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5CB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5CB1 | 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)
#466EB4
Deuteranopia (green-blind)
#5271AF
Tritanopia (blue-blind)
#846A7E
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5cb1; /* rgb */ color: rgb(138, 92, 177); /* oklch */ color: oklch(56.0% 0.135 307.6);
Tailwind
colors: {
custom: {
50: '#ae8bc9',
500: '#8a5cb1',
950: '#000000',
},
}SCSS
$custom: #8a5cb1; $custom-light: #ae8bc9; $custom-dark: #000000;
JSON
{
"hex": "#8a5cb1",
"rgb": {
"r": 138,
"g": 92,
"b": 177
},
"hsl": {
"h": 272.471,
"s": 35.27,
"l": 52.745
},
"oklch": {
"l": 0.56005,
"c": 0.13487,
"h": 307.6
},
"luminance": 0.16232
}Semantic roles & 50–950 ramp
primary
#8A5CB1
secondary
#B3C7A2
accent
#CB5C8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82