#9C31A2#9C31A2
#9C31A2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.193 H 325.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #9C31A2 |
|---|---|
| RGB | rgb(156, 49, 162) |
| HSL | hsl(297, 54%, 41%) |
| HSV | hsv(297, 70%, 64%) |
| CMYK | cmyk(3.7%, 69.8%, 0%, 36.5%) |
| CIE-LAB | lab(41.02, 58.09, -39.15) |
| CIE-LCH | lch(41.02, 70.05, 326.02°) |
| OKLab | oklab(51.66% 0.1591 -0.1087) |
| OKLCH | oklch(51.66% 0.193 325.7) |
| XYZ | xyz(21.3297, 11.8746, 35.3440) |
| Luminance | 0.1187 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.46
Medium Purple
#9E43A2
ΔE00 3.55
Purply
#983FB2
ΔE00 3.85
Barney
#AC1DB8
ΔE00 4.01
Barney Purple
#A00498
ΔE00 4.22
Ugly Purple
#A442A0
ΔE00 4.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C31A2 #37A231
analogous
#6431A2 #9C31A2 #A23170
triadic
#9C31A2 #A29C31 #31A29C
tetradic
#9C31A2 #A26431 #37A231 #3170A2
square
#9C31A2 #A26431 #37A231 #3170A2
split-complementary
#9C31A2 #70A231 #31A264
monochromatic
#421544 #6F2373 #9C31A2 #C148C8 #D177D6
Accessibility & contrast
On white
6.22
#9C31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#9C31A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9C31A2
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C31A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9C31A2 | 1.00 | 6.22 | 3.37 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#49659F
Tritanopia (blue-blind)
#A04366
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #9c31a2; /* rgb */ color: rgb(156, 49, 162); /* oklch */ color: oklch(51.7% 0.193 325.7);
Tailwind
colors: {
custom: {
50: '#bd73be',
500: '#9c31a2',
950: '#000000',
},
}SCSS
$custom: #9c31a2; $custom-light: #bd73be; $custom-dark: #000000;
JSON
{
"hex": "#9c31a2",
"rgb": {
"r": 156,
"g": 49,
"b": 162
},
"hsl": {
"h": 296.814,
"s": 53.555,
"l": 41.373
},
"oklch": {
"l": 0.51664,
"c": 0.19272,
"h": 325.7
},
"luminance": 0.11873
}Semantic roles & 50–950 ramp
primary
#9C31A2
secondary
#75BE71
accent
#DD4B53
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81