#9D2F87#9D2F87
#9D2F87 is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.1% C 0.175 H 337.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #9D2F87 |
|---|---|
| RGB | rgb(157, 47, 135) |
| HSL | hsl(312, 54%, 40%) |
| HSV | hsv(312, 70%, 62%) |
| CMYK | cmyk(0%, 70.1%, 14%, 38.4%) |
| CIE-LAB | lab(39.50, 54.63, -25.15) |
| CIE-LCH | lch(39.50, 60.14, 335.28°) |
| OKLab | oklab(50.14% 0.1606 -0.0683) |
| OKLCH | oklch(50.14% 0.175 337) |
| XYZ | xyz(19.2946, 10.9521, 24.0148) |
| Luminance | 0.1095 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.99
Barney Purple
#A00498
ΔE00 5.29
Light Eggplant
#894585
ΔE00 5.39
Ugly Purple
#A442A0
ΔE00 5.71
Medium Purple
#9E43A2
ΔE00 6.13
Red Violet
#9E0168
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D2F87 #2F9D45
analogous
#7C2F9D #9D2F87 #9D2F50
triadic
#9D2F87 #879D2F #2F879D
tetradic
#9D2F87 #9D7C2F #2F9D45 #2F509D
square
#9D2F87 #9D7C2F #2F9D45 #2F509D
split-complementary
#9D2F87 #509D2F #2F9D7C
monochromatic
#3F1336 #6E215F #9D2F87 #C743AC #D572C1
Accessibility & contrast
On white
6.58
#9D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#9D2F87 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9D2F87
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D2F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D2F87 | 1.00 | 6.58 | 3.19 | 6.58 |
| #FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#32528A
Deuteranopia (green-blind)
#566384
Tritanopia (blue-blind)
#A53557
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #9d2f87; /* rgb */ color: rgb(157, 47, 135); /* oklch */ color: oklch(50.1% 0.175 337.0);
Tailwind
colors: {
custom: {
50: '#bd71aa',
500: '#9d2f87',
950: '#000000',
},
}SCSS
$custom: #9d2f87; $custom-light: #bd71aa; $custom-dark: #000000;
JSON
{
"hex": "#9d2f87",
"rgb": {
"r": 157,
"g": 47,
"b": 135
},
"hsl": {
"h": 312,
"s": 53.922,
"l": 40
},
"oklch": {
"l": 0.50143,
"c": 0.17456,
"h": 337
},
"luminance": 0.1095
}Semantic roles & 50–950 ramp
primary
#9D2F87
secondary
#6BBC7C
accent
#DD684B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F