#9D2158#9D2158

#9D2158 is a mid, vivid pink. Relative luminance 0.090; OKLCH L 46.9% C 0.165 H 359.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#9D2158
RGBrgb(157, 33, 88)
HSLhsl(333, 65%, 37%)
HSVhsv(333, 79%, 62%)
CMYKcmyk(0%, 79%, 43.9%, 38.4%)
CIE-LABlab(35.91, 53.53, -1.05)
CIE-LCHlch(35.91, 53.54, 358.87°)
OKLaboklab(46.91% 0.1645 -0.0021)
OKLCHoklch(46.91% 0.165 359.3)
XYZxyz(16.2112, 8.9625, 10.1069)
Luminance0.0896 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2158 #219D66
analogous
#9D2196 #9D2158 #9D2821
triadic
#9D2158 #589D21 #21589D
tetradic
#9D2158 #969D21 #219D66 #28219D
square
#9D2158 #969D21 #219D66 #28219D
split-complementary
#9D2158 #219D28 #21969D
monochromatic
#380C1F #6A163C #9D2158 #D02C74 #DD5C95

Accessibility & contrast

On white

7.52
#9D2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#9D2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D2158
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2158#FFFFFF#000000##FFFFFF
##9D21581.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4559
Deuteranopia (green-blind)
#5F5D55
Tritanopia (blue-blind)
#AB073A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9d2158;
/* rgb */ color: rgb(157, 33, 88);
/* oklch */ color: oklch(46.9% 0.165 359.3);
Tailwind
colors: {
  custom: {
    50: '#bf6a87',
    500: '#9d2158',
    950: '#000000',
  },
}
SCSS
$custom: #9d2158;
$custom-light: #bf6a87;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2158",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 333.387,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46912,
    "c": 0.16453,
    "h": 359.3
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#9D2158
secondary
#59C193
accent
#E89D40
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9D2158

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

Preview Lab → · Contrast checker → · Palette generator →

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