#8A408B#8A408B
#8A408B is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.6% C 0.140 H 326.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #8A408B |
|---|---|
| RGB | rgb(138, 64, 139) |
| HSL | hsl(299, 37%, 40%) |
| HSV | hsv(299, 54%, 55%) |
| CMYK | cmyk(0.7%, 54%, 0%, 45.5%) |
| CIE-LAB | lab(39.47, 42.47, -27.86) |
| CIE-LCH | lch(39.47, 50.80, 326.74°) |
| OKLab | oklab(49.59% 0.1177 -0.0766) |
| OKLCH | oklch(49.59% 0.14 326.9) |
| XYZ | xyz(16.9745, 10.9351, 25.6377) |
| Luminance | 0.1093 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Light Eggplant
#894585
ΔE00 2.12
Warm Purple
#952E8F
ΔE00 3.78
Medium Purple
#9E43A2
ΔE00 5.15
Ugly Purple
#A442A0
ΔE00 5.72
Bruise
#7E4071
ΔE00 5.91
Purplish
#94568C
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A408B #418B40
analogous
#65408B #8A408B #8B4067
triadic
#8A408B #8B8A40 #408B8A
tetradic
#8A408B #8B6540 #418B40 #40678B
square
#8A408B #8B6540 #418B40 #40678B
split-complementary
#8A408B #678B40 #408B65
monochromatic
#371937 #602D61 #8A408B #B057B2 #C481C5
Accessibility & contrast
On white
6.59
#8A408B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#8A408B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A408B
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A408B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A408B | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#38578D
Deuteranopia (green-blind)
#4F6089
Tritanopia (blue-blind)
#8E495F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8a408b; /* rgb */ color: rgb(138, 64, 139); /* oklch */ color: oklch(49.6% 0.140 326.9);
Tailwind
colors: {
custom: {
50: '#ae78ad',
500: '#8a408b',
950: '#000000',
},
}SCSS
$custom: #8a408b; $custom-light: #ae78ad; $custom-dark: #000000;
JSON
{
"hex": "#8a408b",
"rgb": {
"r": 138,
"g": 64,
"b": 139
},
"hsl": {
"h": 299.2,
"s": 36.946,
"l": 39.804
},
"oklch": {
"l": 0.49591,
"c": 0.14045,
"h": 326.9
},
"luminance": 0.10934
}Semantic roles & 50–950 ramp
primary
#8A408B
secondary
#78AF78
accent
#CD5B5C
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F