#8A31B2#8A31B2
#8A31B2 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.200 H 313.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31B2 |
|---|---|
| RGB | rgb(138, 49, 178) |
| HSL | hsl(281, 57%, 45%) |
| HSV | hsv(281, 72%, 70%) |
| CMYK | cmyk(22.5%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(39.27, 57.25, -51.63) |
| CIE-LCH | lch(39.27, 77.10, 317.95°) |
| OKLab | oklab(50.18% 0.1362 -0.1458) |
| OKLCH | oklch(50.18% 0.2 313) |
| XYZ | xyz(19.6140, 10.8148, 43.1651) |
| Luminance | 0.1081 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.35
Darkorchid
#9932CC
ΔE00 4.46
Purple (survey)
#7E1E9C
ΔE00 5.07
Darkviolet
#9400D3
ΔE00 5.32
Barney
#AC1DB8
ΔE00 5.95
Blueviolet
#8A2BE2
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31B2 #59B231
analogous
#4931B2 #8A31B2 #B2319A
triadic
#8A31B2 #B28A31 #31B28A
tetradic
#8A31B2 #B24931 #59B231 #319AB2
square
#8A31B2 #B24931 #59B231 #319AB2
split-complementary
#8A31B2 #9AB231 #31B249
monochromatic
#401752 #652482 #8A31B2 #A851CF #C081DC
Accessibility & contrast
On white
6.64
#8A31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#8A31B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31B2
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31B2 | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#255EAF
Tritanopia (blue-blind)
#864D6F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a31b2; /* rgb */ color: rgb(138, 49, 178); /* oklch */ color: oklch(50.2% 0.200 313.0);
Tailwind
colors: {
custom: {
50: '#b071ca',
500: '#8a31b2',
950: '#000000',
},
}SCSS
$custom: #8a31b2; $custom-light: #b071ca; $custom-dark: #000000;
JSON
{
"hex": "#8a31b2",
"rgb": {
"r": 138,
"g": 49,
"b": 178
},
"hsl": {
"h": 281.395,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.50181,
"c": 0.19951,
"h": 313
},
"luminance": 0.10814
}Semantic roles & 50–950 ramp
primary
#8A31B2
secondary
#91C579
accent
#E04877
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82