#8A5EB4#8A5EB4
#8A5EB4 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.5% C 0.135 H 306.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5EB4 |
|---|---|
| RGB | rgb(138, 94, 180) |
| HSL | hsl(271, 36%, 54%) |
| HSV | hsv(271, 48%, 71%) |
| CMYK | cmyk(23.3%, 47.8%, 0%, 29.4%) |
| CIE-LAB | lab(47.88, 34.94, -39.05) |
| CIE-LCH | lch(47.88, 52.40, 311.83°) |
| OKLab | oklab(56.51% 0.0798 -0.1092) |
| OKLCH | oklch(56.51% 0.135 306.2) |
| XYZ | xyz(22.7205, 16.7041, 45.1984) |
| Luminance | 0.1670 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 0.75
Amethyst
#9B5FC0
ΔE00 3.80
Royal Purple
#7851A9
ΔE00 5.38
Deep Lilac
#966EBD
ΔE00 5.60
Dark Lavender
#856798
ΔE00 7.68
Purply
#983FB2
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5EB4 #88B45E
analogous
#5F5EB4 #8A5EB4 #B45EB3
triadic
#8A5EB4 #B48A5E #5EB48A
tetradic
#8A5EB4 #B45F5E #88B45E #5EB3B4
square
#8A5EB4 #B45F5E #88B45E #5EB3B4
split-complementary
#8A5EB4 #B3B45E #5EB45F
monochromatic
#4C3067 #6B4491 #8A5EB4 #A888C7 #C7B1DB
Accessibility & contrast
On white
4.84
#8A5EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#8A5EB4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5EB4
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5EB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5EB4 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4770B7
Deuteranopia (green-blind)
#5372B2
Tritanopia (blue-blind)
#846D80
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #8a5eb4; /* rgb */ color: rgb(138, 94, 180); /* oklch */ color: oklch(56.5% 0.135 306.2);
Tailwind
colors: {
custom: {
50: '#ae8dcb',
500: '#8a5eb4',
950: '#000000',
},
}SCSS
$custom: #8a5eb4; $custom-light: #ae8dcb; $custom-dark: #000000;
JSON
{
"hex": "#8a5eb4",
"rgb": {
"r": 138,
"g": 94,
"b": 180
},
"hsl": {
"h": 270.698,
"s": 36.441,
"l": 53.725
},
"oklch": {
"l": 0.56509,
"c": 0.13524,
"h": 306.2
},
"luminance": 0.16704
}Semantic roles & 50–950 ramp
primary
#8A5EB4
secondary
#B6C9A5
accent
#CC5B93
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82