#9A2171#9A2171

#9A2171 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.4% C 0.174 H 345.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#9A2171
RGBrgb(154, 33, 113)
HSLhsl(320, 65%, 37%)
HSVhsv(320, 79%, 60%)
CMYKcmyk(0%, 78.6%, 26.6%, 39.6%)
CIE-LABlab(36.28, 55.57, -16.50)
CIE-LCHlch(36.28, 57.96, 343.47°)
OKLaboklab(47.38% 0.1687 -0.0438)
OKLCHoklch(47.38% 0.174 345.4)
XYZxyz(16.8517, 9.1519, 16.4986)
Luminance0.0915 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2171 #219A4A
analogous
#87219A #9A2171 #9A2134
triadic
#9A2171 #719A21 #21719A
tetradic
#9A2171 #9A8721 #219A4A #21349A
square
#9A2171 #9A8721 #219A4A #21349A
split-complementary
#9A2171 #349A21 #219A87
monochromatic
#350B27 #68164C #9A2171 #CC2C96 #DC5AB0

Accessibility & contrast

On white

7.42
#9A2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#9A2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A2171
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2171#FFFFFF#000000##FFFFFF
##9A21711.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324873
Deuteranopia (green-blind)
#565D6E
Tritanopia (blue-blind)
#A51E47
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9a2171;
/* rgb */ color: rgb(154, 33, 113);
/* oklch */ color: oklch(47.4% 0.174 345.4);
Tailwind
colors: {
  custom: {
    50: '#bc6a9a',
    500: '#9a2171',
    950: '#000000',
  },
}
SCSS
$custom: #9a2171;
$custom-light: #bc6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2171",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 320.331,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47378,
    "c": 0.17427,
    "h": 345.4
  },
  "luminance": 0.0915
}

Semantic roles & 50–950 ramp

primary
#9A2171
secondary
#57C07B
accent
#E87940
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #9A2171

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

Preview Lab → · Contrast checker → · Palette generator →

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