#9D2171#9D2171

#9D2171 is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.9% C 0.176 H 346.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9D2171
RGBrgb(157, 33, 113)
HSLhsl(321, 65%, 37%)
HSVhsv(321, 79%, 62%)
CMYKcmyk(0%, 79%, 28%, 38.4%)
CIE-LABlab(36.84, 56.32, -15.59)
CIE-LCHlch(36.84, 58.44, 344.53°)
OKLaboklab(47.89% 0.1714 -0.0413)
OKLCHoklch(47.89% 0.176 346.5)
XYZxyz(17.4300, 9.4500, 16.5257)
Luminance0.0945 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2171 #219D4D
analogous
#8B219D #9D2171 #9D2133
triadic
#9D2171 #719D21 #21719D
tetradic
#9D2171 #9D8B21 #219D4D #21339D
square
#9D2171 #9D8B21 #219D4D #21339D
split-complementary
#9D2171 #339D21 #219D8B
monochromatic
#380C28 #6A164D #9D2171 #D02C95 #DD5CAF

Accessibility & contrast

On white

7.27
#9D2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#9D2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D2171
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2171#FFFFFF#000000##FFFFFF
##9D21711.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#595E6E
Tritanopia (blue-blind)
#A81D47
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d2171;
/* rgb */ color: rgb(157, 33, 113);
/* oklch */ color: oklch(47.9% 0.176 346.5);
Tailwind
colors: {
  custom: {
    50: '#be6a9a',
    500: '#9d2171',
    950: '#000000',
  },
}
SCSS
$custom: #9d2171;
$custom-light: #be6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2171",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 321.29,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47889,
    "c": 0.17628,
    "h": 346.5
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#9D2171
secondary
#59C17E
accent
#E87B40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9D2171

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9D2171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva