#8A4EC2#8A4EC2
#8A4EC2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.177 H 305.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EC2 |
|---|---|
| RGB | rgb(138, 78, 194) |
| HSL | hsl(271, 49%, 53%) |
| HSV | hsv(271, 60%, 76%) |
| CMYK | cmyk(28.9%, 59.8%, 0%, 23.9%) |
| CIE-LAB | lab(45.29, 47.15, -51.33) |
| CIE-LCH | lch(45.29, 69.70, 312.57°) |
| OKLab | oklab(54.85% 0.102 -0.1451) |
| OKLCH | oklch(54.85% 0.177 305.1) |
| XYZ | xyz(22.9411, 14.7472, 52.6664) |
| Luminance | 0.1475 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.04
Deep Lavender
#8D5EB7
ΔE00 5.07
Purply
#983FB2
ΔE00 5.27
Darkorchid
#9932CC
ΔE00 5.37
Purpley
#8756E4
ΔE00 5.88
Amethyst
#9B5FC0
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EC2 #86C24E
analogous
#504EC2 #8A4EC2 #C24EC0
triadic
#8A4EC2 #C28A4E #4EC28A
tetradic
#8A4EC2 #C2504E #86C24E #4EC0C2
square
#8A4EC2 #C2504E #86C24E #4EC0C2
split-complementary
#8A4EC2 #C0C24E #4EC250
monochromatic
#4C266F #6B369D #8A4EC2 #A87CD2 #C6A9E1
Accessibility & contrast
On white
5.32
#8A4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#8A4EC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EC2
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EC2 | 1.00 | 5.32 | 3.95 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1769C6
Deuteranopia (green-blind)
#356BBF
Tritanopia (blue-blind)
#806581
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a4ec2; /* rgb */ color: rgb(138, 78, 194); /* oklch */ color: oklch(54.8% 0.177 305.1);
Tailwind
colors: {
custom: {
50: '#b082d5',
500: '#8a4ec2',
950: '#000000',
},
}SCSS
$custom: #8a4ec2; $custom-light: #b082d5; $custom-dark: #000000;
JSON
{
"hex": "#8a4ec2",
"rgb": {
"r": 138,
"g": 78,
"b": 194
},
"hsl": {
"h": 271.034,
"s": 48.739,
"l": 53.333
},
"oklch": {
"l": 0.54849,
"c": 0.17734,
"h": 305.1
},
"luminance": 0.14747
}Semantic roles & 50–950 ramp
primary
#8A4EC2
secondary
#B5CF9D
accent
#D85092
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83