#8A31AF#8A31AF
#8A31AF is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.197 H 314.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31AF |
|---|---|
| RGB | rgb(138, 49, 175) |
| HSL | hsl(282, 56%, 44%) |
| HSV | hsv(282, 72%, 69%) |
| CMYK | cmyk(21.1%, 72%, 0%, 31.4%) |
| CIE-LAB | lab(39.06, 56.62, -50.18) |
| CIE-LCH | lch(39.06, 75.66, 318.45°) |
| OKLab | oklab(49.97% 0.1366 -0.1415) |
| OKLCH | oklch(49.97% 0.197 314) |
| XYZ | xyz(19.3161, 10.6957, 41.5961) |
| Luminance | 0.1070 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.29
Purple (survey)
#7E1E9C
ΔE00 4.79
Darkorchid
#9932CC
ΔE00 4.83
Darkviolet
#9400D3
ΔE00 5.70
Barney
#AC1DB8
ΔE00 5.90
Rebeccapurple
#663399
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31AF #56AF31
analogous
#4B31AF #8A31AF #AF3195
triadic
#8A31AF #AF8A31 #31AF8A
tetradic
#8A31AF #AF4B31 #56AF31 #3195AF
square
#8A31AF #AF4B31 #56AF31 #3195AF
split-complementary
#8A31AF #95AF31 #31AF4B
monochromatic
#3F164F #64247F #8A31AF #A94FCE #C07FDB
Accessibility & contrast
On white
6.69
#8A31AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#8A31AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31AF
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31AF | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#295EAC
Tritanopia (blue-blind)
#864C6D
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a31af; /* rgb */ color: rgb(138, 49, 175); /* oklch */ color: oklch(50.0% 0.197 314.0);
Tailwind
colors: {
custom: {
50: '#b071c8',
500: '#8a31af',
950: '#000000',
},
}SCSS
$custom: #8a31af; $custom-light: #b071c8; $custom-dark: #000000;
JSON
{
"hex": "#8a31af",
"rgb": {
"r": 138,
"g": 49,
"b": 175
},
"hsl": {
"h": 282.381,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.49972,
"c": 0.19667,
"h": 314
},
"luminance": 0.10695
}Semantic roles & 50–950 ramp
primary
#8A31AF
secondary
#8EC478
accent
#E04875
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82