#9C2F97#9C2F97
#9C2F97 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.186 H 329.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).
Color values
| HEX | #9C2F97 |
|---|---|
| RGB | rgb(156, 47, 151) |
| HSL | hsl(303, 54%, 40%) |
| HSV | hsv(303, 70%, 61%) |
| CMYK | cmyk(0%, 69.9%, 3.2%, 38.8%) |
| CIE-LAB | lab(40.14, 56.95, -33.91) |
| CIE-LCH | lch(40.14, 66.28, 329.23°) |
| OKLab | oklab(50.84% 0.161 -0.0935) |
| OKLCH | oklch(50.84% 0.186 329.9) |
| XYZ | xyz(20.3126, 11.3368, 30.3905) |
| Luminance | 0.1134 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 1.74
Barney Purple
#A00498
ΔE00 3.59
Medium Purple
#9E43A2
ΔE00 4.12
Ugly Purple
#A442A0
ΔE00 4.33
Barney
#AC1DB8
ΔE00 5.61
Purply
#983FB2
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C2F97 #2F9C34
analogous
#6A2F9C #9C2F97 #9C2F61
triadic
#9C2F97 #979C2F #2F979C
tetradic
#9C2F97 #9C6A2F #2F9C34 #2F619C
square
#9C2F97 #9C6A2F #2F9C34 #2F619C
split-complementary
#9C2F97 #619C2F #2F9C6A
monochromatic
#3E133C #6D2169 #9C2F97 #C642C0 #D471D0
Accessibility & contrast
On white
6.43
#9C2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#9C2F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9C2F97
6.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9C2F97 | 1.00 | 6.43 | 3.27 | 6.43 |
| #FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#A23D5F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #9c2f97; /* rgb */ color: rgb(156, 47, 151); /* oklch */ color: oklch(50.8% 0.186 329.9);
Tailwind
colors: {
custom: {
50: '#bd72b6',
500: '#9c2f97',
950: '#000000',
},
}SCSS
$custom: #9c2f97; $custom-light: #bd72b6; $custom-dark: #000000;
JSON
{
"hex": "#9c2f97",
"rgb": {
"r": 156,
"g": 47,
"b": 151
},
"hsl": {
"h": 302.752,
"s": 53.695,
"l": 39.804
},
"oklch": {
"l": 0.50839,
"c": 0.18618,
"h": 329.9
},
"luminance": 0.11335
}Semantic roles & 50–950 ramp
primary
#9C2F97
secondary
#6BBC6F
accent
#DD514B
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80