#9D2040#9D2040

#9D2040 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.1% C 0.160 H 12.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#9D2040
RGBrgb(157, 32, 64)
HSLhsl(345, 66%, 37%)
HSVhsv(345, 80%, 62%)
CMYKcmyk(0%, 79.6%, 59.2%, 38.4%)
CIE-LABlab(35.15, 51.80, 13.39)
CIE-LCHlch(35.15, 53.50, 14.49°)
OKLaboklab(46.14% 0.1565 0.0333)
OKLCHoklch(46.14% 0.16 12)
XYZxyz(15.3481, 8.5735, 5.6962)
Luminance0.0857 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2040 #209D7D
analogous
#9D207F #9D2040 #9D3F20
triadic
#9D2040 #409D20 #20409D
tetradic
#9D2040 #7F9D20 #209D7D #3F209D
square
#9D2040 #7F9D20 #209D7D #3F209D
split-complementary
#9D2040 #209D3F #207F9D
monochromatic
#370B17 #6A162B #9D2040 #D02A55 #DD5A7C

Accessibility & contrast

On white

7.74
#9D2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#9D2040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D2040
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2040#FFFFFF#000000##FFFFFF
##9D20401.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#434240
Deuteranopia (green-blind)
#635C3D
Tritanopia (blue-blind)
#AC002E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d2040;
/* rgb */ color: rgb(157, 32, 64);
/* oklch */ color: oklch(46.1% 0.160 12.0);
Tailwind
colors: {
  custom: {
    50: '#c16974',
    500: '#9d2040',
    950: '#000000',
  },
}
SCSS
$custom: #9d2040;
$custom-light: #c16974;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2040",
  "rgb": {
    "r": 157,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 344.64,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46138,
    "c": 0.15999,
    "h": 12
  },
  "luminance": 0.08571
}

Semantic roles & 50–950 ramp

primary
#9D2040
secondary
#57C1A6
accent
#E9BD3F
background
#FCF6F7
surface
#F9EBED
border
#D2C6C8
text
#140708
muted
#827A7B

Preview Lab

Preview with #9D2040

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

Preview Lab → · Contrast checker → · Palette generator →

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