#9A2172#9A2172

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

Color values

HEX#9A2172
RGBrgb(154, 33, 114)
HSLhsl(320, 65%, 37%)
HSVhsv(320, 79%, 60%)
CMYKcmyk(0%, 78.6%, 26%, 39.6%)
CIE-LABlab(36.32, 55.70, -17.06)
CIE-LCHlch(36.32, 58.25, 342.97°)
OKLaboklab(47.42% 0.1689 -0.0454)
OKLCHoklch(47.42% 0.175 344.9)
XYZxyz(16.9083, 9.1745, 16.7967)
Luminance0.0917 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2172 #219A49
analogous
#86219A #9A2172 #9A2135
triadic
#9A2172 #729A21 #21729A
tetradic
#9A2172 #9A8621 #219A49 #21359A
square
#9A2172 #9A8621 #219A49 #21359A
split-complementary
#9A2172 #359A21 #219A86
monochromatic
#350B27 #68164D #9A2172 #CC2C97 #DC5AB1

Accessibility & contrast

On white

7.41
#9A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A2172
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2172#FFFFFF#000000##FFFFFF
##9A21721.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314874
Deuteranopia (green-blind)
#565D6F
Tritanopia (blue-blind)
#A51F47
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9a2172;
/* rgb */ color: rgb(154, 33, 114);
/* oklch */ color: oklch(47.4% 0.175 344.9);
Tailwind
colors: {
  custom: {
    50: '#bc6a9a',
    500: '#9a2172',
    950: '#000000',
  },
}
SCSS
$custom: #9a2172;
$custom-light: #bc6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2172",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 319.835,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47423,
    "c": 0.17485,
    "h": 344.9
  },
  "luminance": 0.09173
}

Semantic roles & 50–950 ramp

primary
#9A2172
secondary
#57C07A
accent
#E87840
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #9A2172

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

Preview Lab → · Contrast checker → · Palette generator →

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