#8A5CBD#8A5CBD
#8A5CBD is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.150 H 303.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5CBD |
|---|---|
| RGB | rgb(138, 92, 189) |
| HSL | hsl(268, 42%, 55%) |
| HSV | hsv(268, 51%, 74%) |
| CMYK | cmyk(27%, 51.3%, 0%, 25.9%) |
| CIE-LAB | lab(47.92, 38.26, -44.22) |
| CIE-LCH | lch(47.92, 58.48, 310.87°) |
| OKLab | oklab(56.69% 0.0836 -0.1243) |
| OKLCH | oklch(56.69% 0.15 303.9) |
| XYZ | xyz(23.4917, 16.7318, 50.1262) |
| Luminance | 0.1673 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.67
Amethyst
#9B5FC0
ΔE00 3.80
Royal Purple
#7851A9
ΔE00 5.42
Deep Lilac
#966EBD
ΔE00 6.29
Purpley
#8756E4
ΔE00 6.51
Light Indigo
#6D5ACF
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5CBD #8FBD5C
analogous
#5C5EBD #8A5CBD #BB5CBD
triadic
#8A5CBD #BD8A5C #5CBD8A
tetradic
#8A5CBD #BD5C5E #8FBD5C #5CBDBB
square
#8A5CBD #BD5C5E #8FBD5C #5CBDBB
split-complementary
#8A5CBD #BDBB5C #5EBD5C
monochromatic
#4E2E71 #6C3F9C #8A5CBD #A988CF #C9B3E0
Accessibility & contrast
On white
4.83
#8A5CBD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.35
#8A5CBD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5CBD
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5CBD | 1.00 | 4.83 | 4.35 | 4.83 |
| #FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D71C0
Deuteranopia (green-blind)
#4B72BB
Tritanopia (blue-blind)
#816E84
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #8a5cbd; /* rgb */ color: rgb(138, 92, 189); /* oklch */ color: oklch(56.7% 0.150 303.9);
Tailwind
colors: {
custom: {
50: '#af8bd1',
500: '#8a5cbd',
950: '#000000',
},
}SCSS
$custom: #8a5cbd; $custom-light: #af8bd1; $custom-dark: #000000;
JSON
{
"hex": "#8a5cbd",
"rgb": {
"r": 138,
"g": 92,
"b": 189
},
"hsl": {
"h": 268.454,
"s": 42.358,
"l": 55.098
},
"oklch": {
"l": 0.56692,
"c": 0.14975,
"h": 303.9
},
"luminance": 0.16732
}Semantic roles & 50–950 ramp
primary
#8A5CBD
secondary
#BBCFA6
accent
#D25697
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82