#8A31A5#8A31A5
#8A31A5 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.187 H 317.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31A5 |
|---|---|
| RGB | rgb(138, 49, 165) |
| HSL | hsl(286, 54%, 42%) |
| HSV | hsv(286, 70%, 65%) |
| CMYK | cmyk(16.4%, 70.3%, 0%, 35.3%) |
| CIE-LAB | lab(38.41, 54.58, -45.27) |
| CIE-LCH | lch(38.41, 70.91, 320.32°) |
| OKLab | oklab(49.29% 0.1375 -0.1272) |
| OKLCH | oklch(49.29% 0.187 317.2) |
| XYZ | xyz(18.3701, 10.3173, 36.6138) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.19
Purply
#983FB2
ΔE00 4.48
Warm Purple
#952E8F
ΔE00 5.45
Barney Purple
#A00498
ΔE00 5.89
Barney
#AC1DB8
ΔE00 6.02
Darkorchid
#9932CC
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31A5 #4CA531
analogous
#5031A5 #8A31A5 #A53186
triadic
#8A31A5 #A58A31 #31A58A
tetradic
#8A31A5 #A55031 #4CA531 #3186A5
square
#8A31A5 #A55031 #4CA531 #3186A5
split-complementary
#8A31A5 #86A531 #31A550
monochromatic
#3B1547 #632376 #8A31A5 #AC4AC9 #C179D7
Accessibility & contrast
On white
6.86
#8A31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#8A31A5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31A5
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31A5 | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#345DA2
Tritanopia (blue-blind)
#894867
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a31a5; /* rgb */ color: rgb(138, 49, 165); /* oklch */ color: oklch(49.3% 0.187 317.2);
Tailwind
colors: {
custom: {
50: '#b071c0',
500: '#8a31a5',
950: '#000000',
},
}SCSS
$custom: #8a31a5; $custom-light: #b071c0; $custom-dark: #000000;
JSON
{
"hex": "#8a31a5",
"rgb": {
"r": 138,
"g": 49,
"b": 165
},
"hsl": {
"h": 286.034,
"s": 54.206,
"l": 41.961
},
"oklch": {
"l": 0.49293,
"c": 0.18727,
"h": 317.2
},
"luminance": 0.10317
}Semantic roles & 50–950 ramp
primary
#8A31A5
secondary
#84C072
accent
#DE4A6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81