#8342C7#8342C7
#8342C7 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.8% C 0.198 H 302.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8342C7 |
|---|---|
| RGB | rgb(131, 66, 199) |
| HSL | hsl(269, 54%, 52%) |
| HSV | hsv(269, 67%, 78%) |
| CMYK | cmyk(34.2%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(42.53, 52.91, -58.72) |
| CIE-LCH | lch(42.53, 79.04, 312.02°) |
| OKLab | oklab(52.78% 0.1063 -0.1669) |
| OKLCH | oklch(52.78% 0.198 302.5) |
| XYZ | xyz(21.6147, 12.8452, 55.3624) |
| Luminance | 0.1285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.19
Blueviolet
#8A2BE2
ΔE00 4.57
Bluish Purple
#703BE7
ΔE00 5.64
Bluey Purple
#6241C7
ΔE00 5.86
Purply
#983FB2
ΔE00 6.04
Royal Purple
#7851A9
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8342C7 #86C742
analogous
#4244C7 #8342C7 #C542C7
triadic
#8342C7 #C78342 #42C783
tetradic
#8342C7 #C74244 #86C742 #42C7C5
square
#8342C7 #C74244 #86C742 #42C7C5
split-complementary
#8342C7 #C7C542 #44C742
monochromatic
#46216E #652F9D #8342C7 #A271D5 #C1A0E3
Accessibility & contrast
On white
5.88
#8342C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#8342C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8342C7
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8342C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8342C7 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0064C4
Tritanopia (blue-blind)
#75607F
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8342c7; /* rgb */ color: rgb(131, 66, 199); /* oklch */ color: oklch(52.8% 0.198 302.5);
Tailwind
colors: {
custom: {
50: '#ac7bd9',
500: '#8342c7',
950: '#000000',
},
}SCSS
$custom: #8342c7; $custom-light: #ac7bd9; $custom-dark: #000000;
JSON
{
"hex": "#8342c7",
"rgb": {
"r": 131,
"g": 66,
"b": 199
},
"hsl": {
"h": 269.323,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.52775,
"c": 0.19793,
"h": 302.5
},
"luminance": 0.12845
}Semantic roles & 50–950 ramp
primary
#8342C7
secondary
#B3D095
accent
#DE4A96
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83