#8A5EBB#8A5EBB
#8A5EBB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.9% C 0.144 H 304.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5EBB |
|---|---|
| RGB | rgb(138, 94, 187) |
| HSL | hsl(268, 41%, 55%) |
| HSV | hsv(268, 50%, 73%) |
| CMYK | cmyk(26.2%, 49.7%, 0%, 26.7%) |
| CIE-LAB | lab(48.26, 36.64, -42.53) |
| CIE-LCH | lch(48.26, 56.14, 310.74°) |
| OKLab | oklab(56.91% 0.0806 -0.1193) |
| OKLCH | oklch(56.91% 0.144 304) |
| XYZ | xyz(23.4516, 16.9966, 49.0493) |
| Luminance | 0.1700 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.19
Amethyst
#9B5FC0
ΔE00 3.64
Royal Purple
#7851A9
ΔE00 5.64
Deep Lilac
#966EBD
ΔE00 5.68
Purpley
#8756E4
ΔE00 7.04
Mediumpurple
#9370DB
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5EBB #8FBB5E
analogous
#5E61BB #8A5EBB #B85EBB
triadic
#8A5EBB #BB8A5E #5EBB8A
tetradic
#8A5EBB #BB5E61 #8FBB5E #5EBBB8
square
#8A5EBB #BB5E61 #8FBB5E #5EBBB8
split-complementary
#8A5EBB #BBB85E #61BB5E
monochromatic
#4E2F70 #6C419B #8A5EBB #A989CD #C9B4DF
Accessibility & contrast
On white
4.77
#8A5EBB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#8A5EBB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5EBB
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5EBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5EBB | 1.00 | 4.77 | 4.40 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4271BE
Deuteranopia (green-blind)
#4E73B9
Tritanopia (blue-blind)
#826F84
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #8a5ebb; /* rgb */ color: rgb(138, 94, 187); /* oklch */ color: oklch(56.9% 0.144 304.0);
Tailwind
colors: {
custom: {
50: '#ae8dd0',
500: '#8a5ebb',
950: '#000000',
},
}SCSS
$custom: #8a5ebb; $custom-light: #ae8dd0; $custom-dark: #000000;
JSON
{
"hex": "#8a5ebb",
"rgb": {
"r": 138,
"g": 94,
"b": 187
},
"hsl": {
"h": 268.387,
"s": 40.611,
"l": 55.098
},
"oklch": {
"l": 0.56906,
"c": 0.14403,
"h": 304
},
"luminance": 0.16997
}Semantic roles & 50–950 ramp
primary
#8A5EBB
secondary
#BBCEA7
accent
#D05797
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82