#8342C8#8342C8
#8342C8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.199 H 302.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #8342C8 |
|---|---|
| RGB | rgb(131, 66, 200) |
| HSL | hsl(269, 55%, 52%) |
| HSV | hsv(269, 67%, 78%) |
| CMYK | cmyk(34.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(42.60, 53.15, -59.18) |
| CIE-LCH | lch(42.60, 79.55, 311.93°) |
| OKLab | oklab(52.85% 0.1062 -0.1683) |
| OKLCH | oklch(52.85% 0.199 302.3) |
| XYZ | xyz(21.7312, 12.8918, 55.9759) |
| Luminance | 0.1289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.20
Blueviolet
#8A2BE2
ΔE00 4.47
Bluish Purple
#703BE7
ΔE00 5.51
Bluey Purple
#6241C7
ΔE00 5.83
Purply
#983FB2
ΔE00 6.15
Royal Purple
#7851A9
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8342C8 #87C842
analogous
#4244C8 #8342C8 #C642C8
triadic
#8342C8 #C88342 #42C883
tetradic
#8342C8 #C84244 #87C842 #42C8C6
square
#8342C8 #C84244 #87C842 #42C8C6
split-complementary
#8342C8 #C8C642 #44C842
monochromatic
#47206F #652E9F #8342C8 #A271D6 #C1A1E4
Accessibility & contrast
On white
5.87
#8342C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#8342C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8342C8
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8342C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8342C8 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#756080
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8342c8; /* rgb */ color: rgb(131, 66, 200); /* oklch */ color: oklch(52.8% 0.199 302.3);
Tailwind
colors: {
custom: {
50: '#ac7bda',
500: '#8342c8',
950: '#000000',
},
}SCSS
$custom: #8342c8; $custom-light: #ac7bda; $custom-dark: #000000;
JSON
{
"hex": "#8342c8",
"rgb": {
"r": 131,
"g": 66,
"b": 200
},
"hsl": {
"h": 269.104,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.52848,
"c": 0.19902,
"h": 302.3
},
"luminance": 0.12892
}Semantic roles & 50–950 ramp
primary
#8342C8
secondary
#B4D096
accent
#DE4A96
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83