#9D217F#9D217F
#9D217F is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.5% C 0.185 H 340.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #9D217F |
|---|---|
| RGB | rgb(157, 33, 127) |
| HSL | hsl(315, 65%, 37%) |
| HSV | hsv(315, 79%, 62%) |
| CMYK | cmyk(0%, 79%, 19.1%, 38.4%) |
| CIE-LAB | lab(37.46, 58.17, -23.38) |
| CIE-LCH | lch(37.46, 62.69, 338.10°) |
| OKLab | oklab(48.55% 0.1737 -0.0632) |
| OKLCH | oklch(48.55% 0.185 340) |
| XYZ | xyz(18.2798, 9.7900, 21.0015) |
| Luminance | 0.0979 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.18
Red Violet
#9E0168
ΔE00 5.10
Barney Purple
#A00498
ΔE00 5.38
Darkmagenta
#8B008B
ΔE00 6.91
Light Eggplant
#894585
ΔE00 7.01
Bruise
#7E4071
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D217F #219D3F
analogous
#7D219D #9D217F #9D2141
triadic
#9D217F #7F9D21 #217F9D
tetradic
#9D217F #9D7D21 #219D3F #21419D
square
#9D217F #9D7D21 #219D3F #21419D
split-complementary
#9D217F #419D21 #219D7D
monochromatic
#380C2D #6A1656 #9D217F #D02CA8 #DD5CBD
Accessibility & contrast
On white
7.10
#9D217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#9D217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #9D217F
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D217F | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B4C81
Deuteranopia (green-blind)
#545F7C
Tritanopia (blue-blind)
#A7264E
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #9d217f; /* rgb */ color: rgb(157, 33, 127); /* oklch */ color: oklch(48.5% 0.185 340.0);
Tailwind
colors: {
custom: {
50: '#be6ba4',
500: '#9d217f',
950: '#000000',
},
}SCSS
$custom: #9d217f; $custom-light: #be6ba4; $custom-dark: #000000;
JSON
{
"hex": "#9d217f",
"rgb": {
"r": 157,
"g": 33,
"b": 127
},
"hsl": {
"h": 314.516,
"s": 65.263,
"l": 37.255
},
"oklch": {
"l": 0.48546,
"c": 0.18487,
"h": 340
},
"luminance": 0.09788
}Semantic roles & 50–950 ramp
primary
#9D217F
secondary
#59C172
accent
#E86840
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F