#8A4F97#8A4F97
#8A4F97 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 52.5% C 0.127 H 320.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4F97 |
|---|---|
| RGB | rgb(138, 79, 151) |
| HSL | hsl(289, 31%, 45%) |
| HSV | hsv(289, 48%, 59%) |
| CMYK | cmyk(8.6%, 47.7%, 0%, 40.8%) |
| CIE-LAB | lab(43.11, 36.87, -29.42) |
| CIE-LCH | lch(43.11, 47.17, 321.41°) |
| OKLab | oklab(52.47% 0.0975 -0.0812) |
| OKLCH | oklch(52.47% 0.127 320.2) |
| XYZ | xyz(18.8624, 13.2303, 30.8323) |
| Luminance | 0.1323 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Eggplant
#894585
ΔE00 4.36
Medium Purple
#9E43A2
ΔE00 4.76
Purplish
#94568C
ΔE00 5.30
Ugly Purple
#A442A0
ΔE00 5.63
Purpleish
#98568D
ΔE00 5.80
Purply
#983FB2
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4F97 #5C974F
analogous
#664F97 #8A4F97 #974F80
triadic
#8A4F97 #978A4F #4F978A
tetradic
#8A4F97 #97664F #5C974F #4F8097
square
#8A4F97 #97664F #5C974F #4F8097
split-complementary
#8A4F97 #80974F #4F9766
monochromatic
#412547 #653A6F #8A4F97 #A76FB4 #C098C9
Accessibility & contrast
On white
5.76
#8A4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#8A4F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4F97
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4F97 | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446299
Deuteranopia (green-blind)
#556895
Tritanopia (blue-blind)
#8B586C
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a4f97; /* rgb */ color: rgb(138, 79, 151); /* oklch */ color: oklch(52.5% 0.127 320.2);
Tailwind
colors: {
custom: {
50: '#ae82b6',
500: '#8a4f97',
950: '#000000',
},
}SCSS
$custom: #8a4f97; $custom-light: #ae82b6; $custom-dark: #000000;
JSON
{
"hex": "#8a4f97",
"rgb": {
"r": 138,
"g": 79,
"b": 151
},
"hsl": {
"h": 289.167,
"s": 31.304,
"l": 45.098
},
"oklch": {
"l": 0.52474,
"c": 0.12689,
"h": 320.2
},
"luminance": 0.1323
}Semantic roles & 50–950 ramp
primary
#8A4F97
secondary
#94B68C
accent
#C76073
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80