#8142C4#8142C4
#8142C4 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.194 H 302.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8142C4 |
|---|---|
| RGB | rgb(129, 66, 196) |
| HSL | hsl(269, 52%, 51%) |
| HSV | hsv(269, 66%, 77%) |
| CMYK | cmyk(34.2%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(42.08, 51.77, -57.72) |
| CIE-LCH | lch(42.08, 77.53, 311.89°) |
| OKLab | oklab(52.33% 0.104 -0.1641) |
| OKLCH | oklch(52.33% 0.194 302.4) |
| XYZ | xyz(20.9629, 12.5490, 53.5317) |
| Luminance | 0.1255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.49
Blueviolet
#8A2BE2
ΔE00 4.89
Bluey Purple
#6241C7
ΔE00 5.60
Bluish Purple
#703BE7
ΔE00 5.79
Royal Purple
#7851A9
ΔE00 5.90
Purply
#983FB2
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8142C4 #85C442
analogous
#4244C4 #8142C4 #C242C4
triadic
#8142C4 #C48142 #42C481
tetradic
#8142C4 #C44244 #85C442 #42C4C2
square
#8142C4 #C44244 #85C442 #42C4C2
split-complementary
#8142C4 #C4C242 #44C442
monochromatic
#45216A #633099 #8142C4 #A071D3 #BF9FE1
Accessibility & contrast
On white
5.98
#8142C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#8142C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8142C4
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8142C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8142C4 | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0663C1
Tritanopia (blue-blind)
#735F7D
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8142c4; /* rgb */ color: rgb(129, 66, 196); /* oklch */ color: oklch(52.3% 0.194 302.4);
Tailwind
colors: {
custom: {
50: '#aa7ad7',
500: '#8142c4',
950: '#000000',
},
}SCSS
$custom: #8142c4; $custom-light: #aa7ad7; $custom-dark: #000000;
JSON
{
"hex": "#8142c4",
"rgb": {
"r": 129,
"g": 66,
"b": 196
},
"hsl": {
"h": 269.077,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.52329,
"c": 0.19425,
"h": 302.4
},
"luminance": 0.12549
}Semantic roles & 50–950 ramp
primary
#8142C4
secondary
#B2CE94
accent
#DC4C96
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83