#9C2158#9C2158

#9C2158 is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.7% C 0.164 H 359.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#9C2158
RGBrgb(156, 33, 88)
HSLhsl(333, 65%, 37%)
HSVhsv(333, 79%, 61%)
CMYKcmyk(0%, 78.8%, 43.6%, 38.8%)
CIE-LABlab(35.72, 53.25, -1.36)
CIE-LCHlch(35.72, 53.27, 358.54°)
OKLaboklab(46.74% 0.1637 -0.0029)
OKLCHoklch(46.74% 0.164 359)
XYZxyz(16.0168, 8.8623, 10.0978)
Luminance0.0886 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2158 #219C65
analogous
#9C2195 #9C2158 #9C2821
triadic
#9C2158 #589C21 #21589C
tetradic
#9C2158 #959C21 #219C65 #28219C
square
#9C2158 #959C21 #219C65 #28219C
split-complementary
#9C2158 #219C28 #21959C
monochromatic
#370C1F #69163C #9C2158 #CF2C74 #DC5B95

Accessibility & contrast

On white

7.58
#9C2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#9C2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9C2158
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2158#FFFFFF#000000##FFFFFF
##9C21581.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c2158;
/* rgb */ color: rgb(156, 33, 88);
/* oklch */ color: oklch(46.7% 0.164 359.0);
Tailwind
colors: {
  custom: {
    50: '#be6987',
    500: '#9c2158',
    950: '#000000',
  },
}
SCSS
$custom: #9c2158;
$custom-light: #be6987;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2158",
  "rgb": {
    "r": 156,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 333.171,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46735,
    "c": 0.16371,
    "h": 359
  },
  "luminance": 0.0886
}

Semantic roles & 50–950 ramp

primary
#9C2158
secondary
#58C192
accent
#E89D40
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9C2158

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

Preview Lab → · Contrast checker → · Palette generator →

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