#8B31B2#8B31B2
#8B31B2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.200 H 313.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8B31B2 |
|---|---|
| RGB | rgb(139, 49, 178) |
| HSL | hsl(282, 57%, 45%) |
| HSV | hsv(282, 72%, 70%) |
| CMYK | cmyk(21.9%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(39.41, 57.45, -51.39) |
| CIE-LCH | lch(39.41, 77.09, 318.19°) |
| OKLab | oklab(50.32% 0.1375 -0.1451) |
| OKLCH | oklch(50.32% 0.2 313.5) |
| XYZ | xyz(19.7803, 10.9006, 43.1729) |
| Luminance | 0.1090 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.18
Darkorchid
#9932CC
ΔE00 4.38
Purple (survey)
#7E1E9C
ΔE00 5.15
Darkviolet
#9400D3
ΔE00 5.34
Barney
#AC1DB8
ΔE00 5.76
Blueviolet
#8A2BE2
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B31B2 #58B231
analogous
#4A31B2 #8B31B2 #B23199
triadic
#8B31B2 #B28B31 #31B28B
tetradic
#8B31B2 #B24A31 #58B231 #3199B2
square
#8B31B2 #B24A31 #58B231 #3199B2
split-complementary
#8B31B2 #99B231 #31B24A
monochromatic
#401752 #662482 #8B31B2 #A951CF #C181DC
Accessibility & contrast
On white
6.60
#8B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#8B31B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B31B2
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B31B2 | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#874D6F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8b31b2; /* rgb */ color: rgb(139, 49, 178); /* oklch */ color: oklch(50.3% 0.200 313.5);
Tailwind
colors: {
custom: {
50: '#b172ca',
500: '#8b31b2',
950: '#000000',
},
}SCSS
$custom: #8b31b2; $custom-light: #b172ca; $custom-dark: #000000;
JSON
{
"hex": "#8b31b2",
"rgb": {
"r": 139,
"g": 49,
"b": 178
},
"hsl": {
"h": 281.86,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.50315,
"c": 0.19985,
"h": 313.5
},
"luminance": 0.109
}Semantic roles & 50–950 ramp
primary
#8B31B2
secondary
#90C579
accent
#E04876
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82