#8042C8#8042C8
#8042C8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.198 H 301.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8042C8 |
|---|---|
| RGB | rgb(128, 66, 200) |
| HSL | hsl(268, 55%, 52%) |
| HSV | hsv(268, 67%, 78%) |
| CMYK | cmyk(36%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(42.24, 52.54, -59.78) |
| CIE-LCH | lch(42.24, 79.59, 311.31°) |
| OKLab | oklab(52.51% 0.1021 -0.1702) |
| OKLCH | oklch(52.51% 0.198 301) |
| XYZ | xyz(21.2731, 12.6556, 55.9544) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.51
Darkorchid
#9932CC
ΔE00 4.67
Bluish Purple
#703BE7
ΔE00 5.16
Bluey Purple
#6241C7
ΔE00 5.27
Burple
#6832E3
ΔE00 6.12
Royal Purple
#7851A9
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8042C8 #8AC842
analogous
#4247C8 #8042C8 #C342C8
triadic
#8042C8 #C88042 #42C880
tetradic
#8042C8 #C84247 #8AC842 #42C8C3
square
#8042C8 #C84247 #8AC842 #42C8C3
split-complementary
#8042C8 #C8C342 #47C842
monochromatic
#45206F #622E9F #8042C8 #A071D6 #C0A1E4
Accessibility & contrast
On white
5.95
#8042C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#8042C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8042C8
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8042C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8042C8 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#716180
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8042c8; /* rgb */ color: rgb(128, 66, 200); /* oklch */ color: oklch(52.5% 0.198 301.0);
Tailwind
colors: {
custom: {
50: '#aa7bda',
500: '#8042c8',
950: '#000000',
},
}SCSS
$custom: #8042c8; $custom-light: #aa7bda; $custom-dark: #000000;
JSON
{
"hex": "#8042c8",
"rgb": {
"r": 128,
"g": 66,
"b": 200
},
"hsl": {
"h": 267.761,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.5251,
"c": 0.19848,
"h": 301
},
"luminance": 0.12656
}Semantic roles & 50–950 ramp
primary
#8042C8
secondary
#B5D096
accent
#DE4A99
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83