#8371C2#8371C2
#8371C2 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.0% C 0.121 H 292.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #8371C2 |
|---|---|
| RGB | rgb(131, 113, 194) |
| HSL | hsl(253, 40%, 60%) |
| HSV | hsv(253, 42%, 76%) |
| CMYK | cmyk(32.5%, 41.8%, 0%, 23.9%) |
| CIE-LAB | lab(52.43, 25.40, -40.01) |
| CIE-LCH | lch(52.43, 47.39, 302.41°) |
| OKLab | oklab(60% 0.0466 -0.1122) |
| OKLCH | oklch(60% 0.121 292.6) |
| XYZ | xyz(25.0003, 20.5301, 53.6740) |
| Luminance | 0.2053 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 5.01
Deep Lilac
#966EBD
ΔE00 5.23
Deep Lavender
#8D5EB7
ΔE00 7.19
Mediumslateblue
#7B68EE
ΔE00 7.91
Amethyst
#9B5FC0
ΔE00 8.15
Dark Periwinkle
#665FD1
ΔE00 8.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8371C2 #B0C271
analogous
#7188C2 #8371C2 #AB71C2
triadic
#8371C2 #C28371 #71C283
tetradic
#8371C2 #C27188 #B0C271 #71C2AB
square
#8371C2 #C27188 #B0C271 #71C2AB
split-complementary
#8371C2 #C2AB71 #88C271
monochromatic
#483781 #604AAC #8371C2 #A89CD4 #CEC7E7
Accessibility & contrast
On white
4.11
#8371C2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#8371C2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8371C2
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8371C2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8371C2 | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#587EC5
Deuteranopia (green-blind)
#5A7CC0
Tritanopia (blue-blind)
#748090
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8371c2; /* rgb */ color: rgb(131, 113, 194); /* oklch */ color: oklch(60.0% 0.121 292.6);
Tailwind
colors: {
custom: {
50: '#a99ad5',
500: '#8371c2',
950: '#000000',
},
}SCSS
$custom: #8371c2; $custom-light: #a99ad5; $custom-dark: #000000;
JSON
{
"hex": "#8371c2",
"rgb": {
"r": 131,
"g": 113,
"b": 194
},
"hsl": {
"h": 253.333,
"s": 39.901,
"l": 60.196
},
"oklch": {
"l": 0.60001,
"c": 0.12149,
"h": 292.6
},
"luminance": 0.20531
}Semantic roles & 50–950 ramp
primary
#8371C2
secondary
#D0D7B8
accent
#B33396
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100E14
muted
#7F7E83