#8042C0#8042C0
#8042C0 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.190 H 302.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8042C0 |
|---|---|
| RGB | rgb(128, 66, 192) |
| HSL | hsl(270, 50%, 51%) |
| HSV | hsv(270, 66%, 75%) |
| CMYK | cmyk(33.3%, 65.6%, 0%, 24.7%) |
| CIE-LAB | lab(41.68, 50.58, -56.04) |
| CIE-LCH | lch(41.68, 75.49, 312.07°) |
| OKLab | oklab(51.93% 0.103 -0.1592) |
| OKLCH | oklch(51.93% 0.19 302.9) |
| XYZ | xyz(20.3625, 12.2914, 51.1587) |
| Luminance | 0.1229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.71
Blueviolet
#8A2BE2
ΔE00 5.35
Royal Purple
#7851A9
ΔE00 5.50
Bluey Purple
#6241C7
ΔE00 5.63
Purply
#983FB2
ΔE00 5.85
Bluish Purple
#703BE7
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8042C0 #82C042
analogous
#4243C0 #8042C0 #BF42C0
triadic
#8042C0 #C08042 #42C080
tetradic
#8042C0 #C04243 #82C042 #42C0BF
square
#8042C0 #C04243 #82C042 #42C0BF
split-complementary
#8042C0 #C0BF42 #43C042
monochromatic
#432266 #623194 #8042C0 #9F70CF #BE9EDF
Accessibility & contrast
On white
6.07
#8042C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#8042C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8042C0
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8042C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8042C0 | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#1262BD
Tritanopia (blue-blind)
#735E7B
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8042c0; /* rgb */ color: rgb(128, 66, 192); /* oklch */ color: oklch(51.9% 0.190 302.9);
Tailwind
colors: {
custom: {
50: '#a97ad4',
500: '#8042c0',
950: '#000000',
},
}SCSS
$custom: #8042c0; $custom-light: #a97ad4; $custom-dark: #000000;
JSON
{
"hex": "#8042c0",
"rgb": {
"r": 128,
"g": 66,
"b": 192
},
"hsl": {
"h": 269.524,
"s": 50,
"l": 50.588
},
"oklch": {
"l": 0.51926,
"c": 0.18961,
"h": 302.9
},
"luminance": 0.12291
}Semantic roles & 50–950 ramp
primary
#8042C0
secondary
#AFCB93
accent
#DA4E95
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83