#8042C3#8042C3
#8042C3 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.193 H 302.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #8042C3 |
|---|---|
| RGB | rgb(128, 66, 195) |
| HSL | hsl(269, 52%, 51%) |
| HSV | hsv(269, 66%, 76%) |
| CMYK | cmyk(34.4%, 66.2%, 0%, 23.5%) |
| CIE-LAB | lab(41.88, 51.31, -57.45) |
| CIE-LCH | lch(41.88, 77.03, 311.77°) |
| OKLab | oklab(52.14% 0.1027 -0.1633) |
| OKLCH | oklch(52.14% 0.193 302.2) |
| XYZ | xyz(20.6983, 12.4257, 52.9271) |
| Luminance | 0.1243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.66
Blueviolet
#8A2BE2
ΔE00 5.01
Bluey Purple
#6241C7
ΔE00 5.46
Royal Purple
#7851A9
ΔE00 5.80
Bluish Purple
#703BE7
ΔE00 5.82
Purply
#983FB2
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8042C3 #85C342
analogous
#4244C3 #8042C3 #C042C3
triadic
#8042C3 #C38042 #42C380
tetradic
#8042C3 #C34244 #85C342 #42C3C0
square
#8042C3 #C34244 #85C342 #42C3C0
split-complementary
#8042C3 #C3C042 #44C342
monochromatic
#442169 #623098 #8042C3 #9F70D2 #BE9FE0
Accessibility & contrast
On white
6.03
#8042C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8042C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8042C3
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8042C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8042C3 | 1.00 | 6.03 | 3.49 | 6.03 |
| #FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#0662C0
Tritanopia (blue-blind)
#725F7D
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8042c3; /* rgb */ color: rgb(128, 66, 195); /* oklch */ color: oklch(52.1% 0.193 302.2);
Tailwind
colors: {
custom: {
50: '#aa7ad6',
500: '#8042c3',
950: '#000000',
},
}SCSS
$custom: #8042c3; $custom-light: #aa7ad6; $custom-dark: #000000;
JSON
{
"hex": "#8042c3",
"rgb": {
"r": 128,
"g": 66,
"b": 195
},
"hsl": {
"h": 268.837,
"s": 51.807,
"l": 51.176
},
"oklch": {
"l": 0.52143,
"c": 0.19295,
"h": 302.2
},
"luminance": 0.12426
}Semantic roles & 50–950 ramp
primary
#8042C3
secondary
#B2CD94
accent
#DB4D97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83