#8142C2#8142C2
#8142C2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.192 H 302.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8142C2 |
|---|---|
| RGB | rgb(129, 66, 194) |
| HSL | hsl(270, 51%, 51%) |
| HSV | hsv(270, 66%, 76%) |
| CMYK | cmyk(33.5%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(41.94, 51.28, -56.78) |
| CIE-LCH | lch(41.94, 76.51, 312.08°) |
| OKLab | oklab(52.18% 0.1042 -0.1613) |
| OKLCH | oklch(52.18% 0.192 302.9) |
| XYZ | xyz(20.7368, 12.4586, 52.3407) |
| Luminance | 0.1246 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.51
Blueviolet
#8A2BE2
ΔE00 5.11
Royal Purple
#7851A9
ΔE00 5.70
Bluey Purple
#6241C7
ΔE00 5.70
Purply
#983FB2
ΔE00 5.86
Bluish Purple
#703BE7
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8142C2 #83C242
analogous
#4243C2 #8142C2 #C142C2
triadic
#8142C2 #C28142 #42C281
tetradic
#8142C2 #C24243 #83C242 #42C2C1
square
#8142C2 #C24243 #83C242 #42C2C1
split-complementary
#8142C2 #C2C142 #43C242
monochromatic
#442268 #633196 #8142C2 #A070D1 #BF9FE0
Accessibility & contrast
On white
6.01
#8142C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8142C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8142C2
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8142C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8142C2 | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0E63BF
Tritanopia (blue-blind)
#745E7C
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8142c2; /* rgb */ color: rgb(129, 66, 194); /* oklch */ color: oklch(52.2% 0.192 302.9);
Tailwind
colors: {
custom: {
50: '#aa7ad5',
500: '#8142c2',
950: '#000000',
},
}SCSS
$custom: #8142c2; $custom-light: #aa7ad5; $custom-dark: #000000;
JSON
{
"hex": "#8142c2",
"rgb": {
"r": 129,
"g": 66,
"b": 194
},
"hsl": {
"h": 269.531,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.52184,
"c": 0.19204,
"h": 302.9
},
"luminance": 0.12459
}Semantic roles & 50–950 ramp
primary
#8142C2
secondary
#B0CC94
accent
#DB4D95
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#100914
muted
#7F7B83