#8A3EC1#8A3EC1
#8A3EC1 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.7% C 0.198 H 307.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3EC1 |
|---|---|
| RGB | rgb(138, 62, 193) |
| HSL | hsl(275, 51%, 50%) |
| HSV | hsv(275, 68%, 76%) |
| CMYK | cmyk(28.5%, 67.9%, 0%, 24.3%) |
| CIE-LAB | lab(42.31, 54.87, -55.54) |
| CIE-LCH | lch(42.31, 78.08, 314.65°) |
| OKLab | oklab(52.68% 0.1208 -0.1574) |
| OKLCH | oklch(52.68% 0.198 307.5) |
| XYZ | xyz(21.8275, 12.6991, 51.7430) |
| Luminance | 0.1270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.95
Purply
#983FB2
ΔE00 4.32
Blueviolet
#8A2BE2
ΔE00 5.04
Darkviolet
#9400D3
ΔE00 5.81
Violet (survey)
#9A0EEA
ΔE00 6.38
Royal Purple
#7851A9
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3EC1 #75C13E
analogous
#483EC1 #8A3EC1 #C13EB7
triadic
#8A3EC1 #C18A3E #3EC18A
tetradic
#8A3EC1 #C1483E #75C13E #3EB7C1
square
#8A3EC1 #C1483E #75C13E #3EB7C1
split-complementary
#8A3EC1 #B7C13E #3EC148
monochromatic
#482064 #692F93 #8A3EC1 #A66CD0 #C29BDF
Accessibility & contrast
On white
5.93
#8A3EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#8A3EC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3EC1
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3EC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3EC1 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#1E65BE
Tritanopia (blue-blind)
#815B7B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a3ec1; /* rgb */ color: rgb(138, 62, 193); /* oklch */ color: oklch(52.7% 0.198 307.5);
Tailwind
colors: {
custom: {
50: '#b079d4',
500: '#8a3ec1',
950: '#000000',
},
}SCSS
$custom: #8a3ec1; $custom-light: #b079d4; $custom-dark: #000000;
JSON
{
"hex": "#8a3ec1",
"rgb": {
"r": 138,
"g": 62,
"b": 193
},
"hsl": {
"h": 274.809,
"s": 51.373,
"l": 50
},
"oklch": {
"l": 0.52675,
"c": 0.19836,
"h": 307.5
},
"luminance": 0.12699
}Semantic roles & 50–950 ramp
primary
#8A3EC1
secondary
#A9CB90
accent
#DB4D89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83