#8140C6#8140C6
#8140C6 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.199 H 302.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #8140C6 |
|---|---|
| RGB | rgb(129, 64, 198) |
| HSL | hsl(269, 54%, 51%) |
| HSV | hsv(269, 68%, 78%) |
| CMYK | cmyk(34.8%, 67.7%, 0%, 22.4%) |
| CIE-LAB | lab(41.86, 53.24, -59.23) |
| CIE-LCH | lch(41.86, 79.64, 311.95°) |
| OKLab | oklab(52.22% 0.1059 -0.1685) |
| OKLCH | oklch(52.22% 0.199 302.1) |
| XYZ | xyz(21.0773, 12.4111, 54.7003) |
| Luminance | 0.1241 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.35
Blueviolet
#8A2BE2
ΔE00 4.45
Bluish Purple
#703BE7
ΔE00 5.45
Bluey Purple
#6241C7
ΔE00 5.47
Darkviolet
#9400D3
ΔE00 6.24
Burple
#6832E3
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8140C6 #85C640
analogous
#4042C6 #8140C6 #C440C6
triadic
#8140C6 #C68140 #40C681
tetradic
#8140C6 #C64042 #85C640 #40C6C4
square
#8140C6 #C64042 #85C640 #40C6C4
split-complementary
#8140C6 #C6C440 #42C640
monochromatic
#45206C #632E9B #8140C6 #A06FD4 #BF9EE2
Accessibility & contrast
On white
6.03
#8140C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#8140C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8140C6
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8140C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8140C6 | 1.00 | 6.03 | 3.48 | 6.03 |
| #FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062CA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#735F7E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8140c6; /* rgb */ color: rgb(129, 64, 198); /* oklch */ color: oklch(52.2% 0.199 302.1);
Tailwind
colors: {
custom: {
50: '#ab79d8',
500: '#8140c6',
950: '#000000',
},
}SCSS
$custom: #8140c6; $custom-light: #ab79d8; $custom-dark: #000000;
JSON
{
"hex": "#8140c6",
"rgb": {
"r": 129,
"g": 64,
"b": 198
},
"hsl": {
"h": 269.104,
"s": 54.032,
"l": 51.373
},
"oklch": {
"l": 0.52221,
"c": 0.19901,
"h": 302.1
},
"luminance": 0.12411
}Semantic roles & 50–950 ramp
primary
#8140C6
secondary
#B2CE93
accent
#DD4A96
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110915
muted
#807B83