#8340C3#8340C3
#8340C3 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.196 H 303.7°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8340C3 |
|---|---|
| RGB | rgb(131, 64, 195) |
| HSL | hsl(271, 52%, 51%) |
| HSV | hsv(271, 67%, 76%) |
| CMYK | cmyk(32.8%, 67.2%, 0%, 23.5%) |
| CIE-LAB | lab(41.90, 52.92, -57.42) |
| CIE-LCH | lch(41.90, 78.09, 312.67°) |
| OKLab | oklab(52.23% 0.109 -0.1631) |
| OKLCH | oklch(52.23% 0.196 303.7) |
| XYZ | xyz(21.0415, 12.4323, 52.9103) |
| Luminance | 0.1243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.04
Blueviolet
#8A2BE2
ΔE00 4.77
Purply
#983FB2
ΔE00 5.64
Bluey Purple
#6241C7
ΔE00 5.98
Bluish Purple
#703BE7
ΔE00 6.08
Royal Purple
#7851A9
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8340C3 #80C340
analogous
#4140C3 #8340C3 #C340C1
triadic
#8340C3 #C38340 #40C383
tetradic
#8340C3 #C34140 #80C340 #40C1C3
square
#8340C3 #C34140 #80C340 #40C1C3
split-complementary
#8340C3 #C1C340 #40C341
monochromatic
#452168 #642F97 #8340C3 #A16FD2 #BF9DE0
Accessibility & contrast
On white
6.02
#8340C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8340C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8340C3
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8340C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8340C3 | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#0A63C0
Tritanopia (blue-blind)
#775D7C
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8340c3; /* rgb */ color: rgb(131, 64, 195); /* oklch */ color: oklch(52.2% 0.196 303.7);
Tailwind
colors: {
custom: {
50: '#ac79d6',
500: '#8340c3',
950: '#000000',
},
}SCSS
$custom: #8340c3; $custom-light: #ac79d6; $custom-dark: #000000;
JSON
{
"hex": "#8340c3",
"rgb": {
"r": 131,
"g": 64,
"b": 195
},
"hsl": {
"h": 270.687,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.52231,
"c": 0.19618,
"h": 303.7
},
"luminance": 0.12432
}Semantic roles & 50–950 ramp
primary
#8340C3
secondary
#AFCC92
accent
#DC4C92
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83