#8A31A7#8A31A7
#8A31A7 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.189 H 316.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31A7 |
|---|---|
| RGB | rgb(138, 49, 167) |
| HSL | hsl(285, 55%, 42%) |
| HSV | hsv(285, 71%, 65%) |
| CMYK | cmyk(17.4%, 70.7%, 0%, 34.5%) |
| CIE-LAB | lab(38.53, 54.98, -46.27) |
| CIE-LCH | lch(38.53, 71.86, 319.92°) |
| OKLab | oklab(49.43% 0.1373 -0.13) |
| OKLCH | oklch(49.43% 0.189 316.6) |
| XYZ | xyz(18.5535, 10.3907, 37.5800) |
| Luminance | 0.1039 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.26
Purply
#983FB2
ΔE00 4.39
Warm Purple
#952E8F
ΔE00 5.77
Darkorchid
#9932CC
ΔE00 5.95
Barney
#AC1DB8
ΔE00 5.96
Barney Purple
#A00498
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31A7 #4EA731
analogous
#4F31A7 #8A31A7 #A73189
triadic
#8A31A7 #A78A31 #31A78A
tetradic
#8A31A7 #A74F31 #4EA731 #3189A7
square
#8A31A7 #A74F31 #4EA731 #3189A7
split-complementary
#8A31A7 #89A731 #31A74F
monochromatic
#3C1548 #632378 #8A31A7 #AB4BCA #C17AD8
Accessibility & contrast
On white
6.82
#8A31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#8A31A7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31A7
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31A7 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#325DA4
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #8a31a7; /* rgb */ color: rgb(138, 49, 167); /* oklch */ color: oklch(49.4% 0.189 316.6);
Tailwind
colors: {
custom: {
50: '#b071c2',
500: '#8a31a7',
950: '#000000',
},
}SCSS
$custom: #8a31a7; $custom-light: #b071c2; $custom-dark: #000000;
JSON
{
"hex": "#8a31a7",
"rgb": {
"r": 138,
"g": 49,
"b": 167
},
"hsl": {
"h": 285.254,
"s": 54.63,
"l": 42.353
},
"oklch": {
"l": 0.49426,
"c": 0.18914,
"h": 316.6
},
"luminance": 0.1039
}Semantic roles & 50–950 ramp
primary
#8A31A7
secondary
#86C173
accent
#DE4A6E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81