#9E2172#9E2172

#9E2172 is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.1% C 0.178 H 346.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9E2172
RGBrgb(158, 33, 114)
HSLhsl(321, 65%, 37%)
HSVhsv(321, 79%, 62%)
CMYKcmyk(0%, 79.1%, 27.8%, 38%)
CIE-LABlab(37.07, 56.70, -15.85)
CIE-LCHlch(37.07, 58.87, 344.38°)
OKLaboklab(48.1% 0.1725 -0.042)
OKLCHoklch(48.1% 0.178 346.3)
XYZxyz(17.6825, 9.5737, 16.8330)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2172 #219E4D
analogous
#8C219E #9E2172 #9E2134
triadic
#9E2172 #729E21 #21729E
tetradic
#9E2172 #9E8C21 #219E4D #21349E
square
#9E2172 #9E8C21 #219E4D #21349E
split-complementary
#9E2172 #349E21 #219E8C
monochromatic
#390C29 #6B164D #9E2172 #D12C97 #DD5CB0

Accessibility & contrast

On white

7.21
#9E2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9E2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E2172
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2172#FFFFFF#000000##FFFFFF
##9E21721.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334A74
Deuteranopia (green-blind)
#595F6F
Tritanopia (blue-blind)
#A91D47
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9e2172;
/* rgb */ color: rgb(158, 33, 114);
/* oklch */ color: oklch(48.1% 0.178 346.3);
Tailwind
colors: {
  custom: {
    50: '#bf6b9a',
    500: '#9e2172',
    950: '#000000',
  },
}
SCSS
$custom: #9e2172;
$custom-light: #bf6b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2172",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 321.12,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48104,
    "c": 0.17752,
    "h": 346.3
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E2172

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

Preview Lab → · Contrast checker → · Palette generator →

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