#8340C2#8340C2
#8340C2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.195 H 304.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8340C2 |
|---|---|
| RGB | rgb(131, 64, 194) |
| HSL | hsl(271, 52%, 51%) |
| HSV | hsv(271, 67%, 76%) |
| CMYK | cmyk(32.5%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(41.83, 52.68, -56.95) |
| CIE-LCH | lch(41.83, 77.58, 312.77°) |
| OKLab | oklab(52.16% 0.1091 -0.1617) |
| OKLCH | oklch(52.16% 0.195 304) |
| XYZ | xyz(20.9289, 12.3872, 52.3169) |
| Luminance | 0.1239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.06
Blueviolet
#8A2BE2
ΔE00 4.89
Purply
#983FB2
ΔE00 5.54
Royal Purple
#7851A9
ΔE00 6.01
Bluey Purple
#6241C7
ΔE00 6.04
Bluish Purple
#703BE7
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8340C2 #7FC240
analogous
#4240C2 #8340C2 #C240C0
triadic
#8340C2 #C28340 #40C283
tetradic
#8340C2 #C24240 #7FC240 #40C0C2
square
#8340C2 #C24240 #7FC240 #40C0C2
split-complementary
#8340C2 #C0C240 #40C242
monochromatic
#452167 #643095 #8340C2 #A16ED1 #BF9DE0
Accessibility & contrast
On white
6.04
#8340C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#8340C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8340C2
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8340C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8340C2 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0E63BF
Tritanopia (blue-blind)
#775D7C
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8340c2; /* rgb */ color: rgb(131, 64, 194); /* oklch */ color: oklch(52.2% 0.195 304.0);
Tailwind
colors: {
custom: {
50: '#ac79d5',
500: '#8340c2',
950: '#000000',
},
}SCSS
$custom: #8340c2; $custom-light: #ac79d5; $custom-dark: #000000;
JSON
{
"hex": "#8340c2",
"rgb": {
"r": 131,
"g": 64,
"b": 194
},
"hsl": {
"h": 270.923,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.52159,
"c": 0.19509,
"h": 304
},
"luminance": 0.12387
}Semantic roles & 50–950 ramp
primary
#8340C2
secondary
#AECC92
accent
#DB4D92
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83