#8A71C2#8A71C2
#8A71C2 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 60.6% C 0.122 H 296.8°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #8A71C2 |
|---|---|
| RGB | rgb(138, 113, 194) |
| HSL | hsl(259, 40%, 60%) |
| HSV | hsv(259, 42%, 76%) |
| CMYK | cmyk(28.9%, 41.8%, 0%, 23.9%) |
| CIE-LAB | lab(53.07, 27.37, -38.96) |
| CIE-LCH | lch(53.07, 47.62, 305.09°) |
| OKLab | oklab(60.64% 0.0551 -0.109) |
| OKLCH | oklch(60.64% 0.122 296.8) |
| XYZ | xyz(26.1216, 21.1083, 53.7266) |
| Luminance | 0.2111 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.57
Mediumpurple
#9370DB
ΔE00 4.48
Deep Lavender
#8D5EB7
ΔE00 6.45
Amethyst
#9B5FC0
ΔE00 6.91
Wisteria
#A87DC2
ΔE00 7.90
Soft Purple
#A66FB5
ΔE00 8.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A71C2 #A9C271
analogous
#7180C2 #8A71C2 #B371C2
triadic
#8A71C2 #C28A71 #71C28A
tetradic
#8A71C2 #C27180 #A9C271 #71C2B3
square
#8A71C2 #C27180 #A9C271 #71C2B3
split-complementary
#8A71C2 #C2B371 #80C271
monochromatic
#4E3781 #684AAC #8A71C2 #AD9CD4 #D1C7E7
Accessibility & contrast
On white
4.02
#8A71C2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#8A71C2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A71C2
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A71C2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A71C2 | 1.00 | 4.02 | 5.22 | 5.22 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A7FC5
Deuteranopia (green-blind)
#5E7EC0
Tritanopia (blue-blind)
#7E7F90
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a71c2; /* rgb */ color: rgb(138, 113, 194); /* oklch */ color: oklch(60.6% 0.122 296.8);
Tailwind
colors: {
custom: {
50: '#ae9ad5',
500: '#8a71c2',
950: '#000000',
},
}SCSS
$custom: #8a71c2; $custom-light: #ae9ad5; $custom-dark: #000000;
JSON
{
"hex": "#8a71c2",
"rgb": {
"r": 138,
"g": 113,
"b": 194
},
"hsl": {
"h": 258.519,
"s": 39.901,
"l": 60.196
},
"oklch": {
"l": 0.60636,
"c": 0.12213,
"h": 296.8
},
"luminance": 0.21109
}Semantic roles & 50–950 ramp
primary
#8A71C2
secondary
#CDD7B8
accent
#B3338B
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83