#9B2171#9B2171

#9B2171 is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.5% C 0.175 H 345.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#9B2171
RGBrgb(155, 33, 113)
HSLhsl(321, 65%, 37%)
HSVhsv(321, 79%, 61%)
CMYKcmyk(0%, 78.7%, 27.1%, 39.2%)
CIE-LABlab(36.46, 55.82, -16.19)
CIE-LCHlch(36.46, 58.12, 343.82°)
OKLaboklab(47.55% 0.1696 -0.043)
OKLCHoklch(47.55% 0.175 345.8)
XYZxyz(17.0428, 9.2504, 16.5076)
Luminance0.0925 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2171 #219B4B
analogous
#88219B #9B2171 #9B2134
triadic
#9B2171 #719B21 #21719B
tetradic
#9B2171 #9B8821 #219B4B #21349B
square
#9B2171 #9B8821 #219B4B #21349B
split-complementary
#9B2171 #349B21 #219B88
monochromatic
#360C27 #69164C #9B2171 #CD2C96 #DC5AAF

Accessibility & contrast

On white

7.37
#9B2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#9B2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B2171
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2171#FFFFFF#000000##FFFFFF
##9B21711.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324973
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A61E47
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9b2171;
/* rgb */ color: rgb(155, 33, 113);
/* oklch */ color: oklch(47.5% 0.175 345.8);
Tailwind
colors: {
  custom: {
    50: '#bd6a9a',
    500: '#9b2171',
    950: '#000000',
  },
}
SCSS
$custom: #9b2171;
$custom-light: #bd6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2171",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 320.656,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47548,
    "c": 0.17494,
    "h": 345.8
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#9B2171
secondary
#58C07C
accent
#E87A40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9B2171

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

Preview Lab → · Contrast checker → · Palette generator →

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