#8A3EC2#8A3EC2
#8A3EC2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.7% C 0.199 H 307.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3EC2 |
|---|---|
| RGB | rgb(138, 62, 194) |
| HSL | hsl(275, 52%, 50%) |
| HSV | hsv(275, 68%, 76%) |
| CMYK | cmyk(28.9%, 68%, 0%, 23.9%) |
| CIE-LAB | lab(42.37, 55.10, -56.02) |
| CIE-LCH | lch(42.37, 78.57, 314.53°) |
| OKLab | oklab(52.75% 0.1207 -0.1587) |
| OKLCH | oklch(52.75% 0.199 307.2) |
| XYZ | xyz(21.9394, 12.7438, 52.3325) |
| Luminance | 0.1274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.91
Purply
#983FB2
ΔE00 4.43
Blueviolet
#8A2BE2
ΔE00 4.91
Darkviolet
#9400D3
ΔE00 5.77
Violet (survey)
#9A0EEA
ΔE00 6.28
Royal Purple
#7851A9
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3EC2 #76C23E
analogous
#483EC2 #8A3EC2 #C23EB8
triadic
#8A3EC2 #C28A3E #3EC28A
tetradic
#8A3EC2 #C2483E #76C23E #3EB8C2
square
#8A3EC2 #C2483E #76C23E #3EB8C2
split-complementary
#8A3EC2 #B8C23E #3EC248
monochromatic
#482066 #692F94 #8A3EC2 #A66DD1 #C29BDF
Accessibility & contrast
On white
5.92
#8A3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#8A3EC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3EC2
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3EC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3EC2 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#1C65BF
Tritanopia (blue-blind)
#815B7B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a3ec2; /* rgb */ color: rgb(138, 62, 194); /* oklch */ color: oklch(52.7% 0.199 307.2);
Tailwind
colors: {
custom: {
50: '#b179d5',
500: '#8a3ec2',
950: '#000000',
},
}SCSS
$custom: #8a3ec2; $custom-light: #b179d5; $custom-dark: #000000;
JSON
{
"hex": "#8a3ec2",
"rgb": {
"r": 138,
"g": 62,
"b": 194
},
"hsl": {
"h": 274.545,
"s": 51.969,
"l": 50.196
},
"oklch": {
"l": 0.52746,
"c": 0.1994,
"h": 307.2
},
"luminance": 0.12744
}Semantic roles & 50–950 ramp
primary
#8A3EC2
secondary
#A9CB90
accent
#DB4C89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83