#8A5BAF#8A5BAF
#8A5BAF is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.7% C 0.134 H 308.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BAF |
|---|---|
| RGB | rgb(138, 91, 175) |
| HSL | hsl(274, 34%, 52%) |
| HSV | hsv(274, 48%, 69%) |
| CMYK | cmyk(21.1%, 48%, 0%, 31.4%) |
| CIE-LAB | lab(46.95, 35.47, -37.60) |
| CIE-LCH | lch(46.95, 51.69, 313.33°) |
| OKLab | oklab(55.73% 0.0834 -0.105) |
| OKLCH | oklch(55.73% 0.134 308.5) |
| XYZ | xyz(21.9587, 15.9809, 42.4770) |
| Luminance | 0.1598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.69
Amethyst
#9B5FC0
ΔE00 4.33
Royal Purple
#7851A9
ΔE00 4.82
Deep Lilac
#966EBD
ΔE00 6.54
Purply
#983FB2
ΔE00 7.11
Dark Lavender
#856798
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BAF #80AF5B
analogous
#605BAF #8A5BAF #AF5BAA
triadic
#8A5BAF #AF8A5B #5BAF8A
tetradic
#8A5BAF #AF605B #80AF5B #5BAAAF
square
#8A5BAF #AF605B #80AF5B #5BAAAF
split-complementary
#8A5BAF #AAAF5B #5BAF60
monochromatic
#4B2F61 #6B438A #8A5BAF #A784C3 #C5ADD7
Accessibility & contrast
On white
5.00
#8A5BAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#8A5BAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BAF
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BAF | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#466DB2
Deuteranopia (green-blind)
#5370AD
Tritanopia (blue-blind)
#85697D
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a5baf; /* rgb */ color: rgb(138, 91, 175); /* oklch */ color: oklch(55.7% 0.134 308.5);
Tailwind
colors: {
custom: {
50: '#ae8ac7',
500: '#8a5baf',
950: '#000000',
},
}SCSS
$custom: #8a5baf; $custom-light: #ae8ac7; $custom-dark: #000000;
JSON
{
"hex": "#8a5baf",
"rgb": {
"r": 138,
"g": 91,
"b": 175
},
"hsl": {
"h": 273.571,
"s": 34.426,
"l": 52.157
},
"oklch": {
"l": 0.55727,
"c": 0.13409,
"h": 308.5
},
"luminance": 0.15981
}Semantic roles & 50–950 ramp
primary
#8A5BAF
secondary
#B1C5A1
accent
#CB5D8D
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82