#8A4ED1#8A4ED1
#8A4ED1 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.9% C 0.194 H 301.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4ED1 |
|---|---|
| RGB | rgb(138, 78, 209) |
| HSL | hsl(267, 59%, 56%) |
| HSV | hsv(267, 63%, 82%) |
| CMYK | cmyk(34%, 62.7%, 0%, 18%) |
| CIE-LAB | lab(46.25, 50.80, -58.43) |
| CIE-LCH | lch(46.25, 77.42, 311.00°) |
| OKLab | oklab(55.86% 0.1014 -0.1659) |
| OKLCH | oklch(55.86% 0.194 301.4) |
| XYZ | xyz(24.7115, 15.4554, 61.9905) |
| Luminance | 0.1546 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.72
Darkorchid
#9932CC
ΔE00 5.60
Lightish Purple
#A552E6
ΔE00 5.92
Blueviolet
#8A2BE2
ΔE00 6.28
Light Indigo
#6D5ACF
ΔE00 6.35
Deep Lavender
#8D5EB7
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4ED1 #95D14E
analogous
#4E54D1 #8A4ED1 #CC4ED1
triadic
#8A4ED1 #D18A4E #4ED18A
tetradic
#8A4ED1 #D14E54 #95D14E #4ED1CC
square
#8A4ED1 #D14E54 #95D14E #4ED1CC
split-complementary
#8A4ED1 #D1CC4E #54D14E
monochromatic
#4E2283 #6B2FB3 #8A4ED1 #AA7FDE #CAAFEA
Accessibility & contrast
On white
5.13
#8A4ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#8A4ED1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4ED1
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4ED1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4ED1 | 1.00 | 5.13 | 4.09 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD5
Deuteranopia (green-blind)
#1F6DCE
Tritanopia (blue-blind)
#7B6A88
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8a4ed1; /* rgb */ color: rgb(138, 78, 209); /* oklch */ color: oklch(55.9% 0.194 301.4);
Tailwind
colors: {
custom: {
50: '#b183e0',
500: '#8a4ed1',
950: '#000000',
},
}SCSS
$custom: #8a4ed1; $custom-light: #b183e0; $custom-dark: #000000;
JSON
{
"hex": "#8a4ed1",
"rgb": {
"r": 138,
"g": 78,
"b": 209
},
"hsl": {
"h": 267.481,
"s": 58.744,
"l": 56.275
},
"oklch": {
"l": 0.55859,
"c": 0.19444,
"h": 301.4
},
"luminance": 0.15456
}Semantic roles & 50–950 ramp
primary
#8A4ED1
secondary
#C0D8A2
accent
#E2469A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83