#8A4ED4#8A4ED4
#8A4ED4 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.1% C 0.198 H 300.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4ED4 |
|---|---|
| RGB | rgb(138, 78, 212) |
| HSL | hsl(267, 61%, 57%) |
| HSV | hsv(267, 63%, 83%) |
| CMYK | cmyk(34.9%, 63.2%, 0%, 16.9%) |
| CIE-LAB | lab(46.45, 51.54, -59.83) |
| CIE-LCH | lch(46.45, 78.96, 310.74°) |
| OKLab | oklab(56.07% 0.1012 -0.17) |
| OKLCH | oklch(56.07% 0.198 300.8) |
| XYZ | xyz(25.0864, 15.6054, 63.9651) |
| Luminance | 0.1561 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.34
Lightish Purple
#A552E6
ΔE00 5.74
Darkorchid
#9932CC
ΔE00 5.76
Blueviolet
#8A2BE2
ΔE00 6.20
Light Indigo
#6D5ACF
ΔE00 6.26
Bluish Purple
#703BE7
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4ED4 #98D44E
analogous
#4E55D4 #8A4ED4 #CD4ED4
triadic
#8A4ED4 #D48A4E #4ED48A
tetradic
#8A4ED4 #D44E55 #98D44E #4ED4CD
square
#8A4ED4 #D44E55 #98D44E #4ED4CD
split-complementary
#8A4ED4 #D4CD4E #55D44E
monochromatic
#4E2187 #6B2DB8 #8A4ED4 #AB7FE0 #CBB0EC
Accessibility & contrast
On white
5.10
#8A4ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#8A4ED4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4ED4
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4ED4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4ED4 | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#176DD1
Tritanopia (blue-blind)
#7A6B8A
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8a4ed4; /* rgb */ color: rgb(138, 78, 212); /* oklch */ color: oklch(56.1% 0.198 300.8);
Tailwind
colors: {
custom: {
50: '#b183e2',
500: '#8a4ed4',
950: '#000000',
},
}SCSS
$custom: #8a4ed4; $custom-light: #b183e2; $custom-dark: #000000;
JSON
{
"hex": "#8a4ed4",
"rgb": {
"r": 138,
"g": 78,
"b": 212
},
"hsl": {
"h": 266.866,
"s": 60.909,
"l": 56.863
},
"oklch": {
"l": 0.56068,
"c": 0.19785,
"h": 300.8
},
"luminance": 0.15606
}Semantic roles & 50–950 ramp
primary
#8A4ED4
secondary
#C2DAA4
accent
#E4449C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83