#8340C0#8340C0
#8340C0 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.193 H 304.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8340C0 |
|---|---|
| RGB | rgb(131, 64, 192) |
| HSL | hsl(271, 50%, 50%) |
| HSV | hsv(271, 67%, 75%) |
| CMYK | cmyk(31.8%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(41.69, 52.21, -56.01) |
| CIE-LCH | lch(41.69, 76.57, 312.99°) |
| OKLab | oklab(52.02% 0.1093 -0.159) |
| OKLCH | oklch(52.02% 0.193 304.5) |
| XYZ | xyz(20.7058, 12.2979, 51.1419) |
| Luminance | 0.1230 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.11
Blueviolet
#8A2BE2
ΔE00 5.14
Purply
#983FB2
ΔE00 5.34
Royal Purple
#7851A9
ΔE00 5.84
Bluey Purple
#6241C7
ΔE00 6.16
Darkviolet
#9400D3
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8340C0 #7DC040
analogous
#4340C0 #8340C0 #C040BD
triadic
#8340C0 #C08340 #40C083
tetradic
#8340C0 #C04340 #7DC040 #40BDC0
square
#8340C0 #C04340 #7DC040 #40BDC0
split-complementary
#8340C0 #BDC040 #40C043
monochromatic
#442164 #643092 #8340C0 #A16ECF #BF9CDE
Accessibility & contrast
On white
6.07
#8340C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#8340C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8340C0
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8340C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8340C0 | 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)
#1562BD
Tritanopia (blue-blind)
#785C7B
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8340c0; /* rgb */ color: rgb(131, 64, 192); /* oklch */ color: oklch(52.0% 0.193 304.5);
Tailwind
colors: {
custom: {
50: '#ac79d4',
500: '#8340c0',
950: '#000000',
},
}SCSS
$custom: #8340c0; $custom-light: #ac79d4; $custom-dark: #000000;
JSON
{
"hex": "#8340c0",
"rgb": {
"r": 131,
"g": 64,
"b": 192
},
"hsl": {
"h": 271.406,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.52015,
"c": 0.19293,
"h": 304.5
},
"luminance": 0.12298
}Semantic roles & 50–950 ramp
primary
#8340C0
secondary
#ADCB91
accent
#DA4E91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83