#9D2287#9D2287

#9D2287 is a mid, vivid pink. Relative luminance 0.101; OKLCH L 49.0% C 0.189 H 336.6°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9D2287
RGBrgb(157, 34, 135)
HSLhsl(311, 64%, 37%)
HSVhsv(311, 78%, 62%)
CMYKcmyk(0%, 78.3%, 14%, 38.4%)
CIE-LABlab(37.96, 59.02, -27.56)
CIE-LCHlch(37.96, 65.13, 334.97°)
OKLaboklab(49.03% 0.1737 -0.0751)
OKLCHoklch(49.03% 0.189 336.6)
XYZxyz(18.8502, 10.0632, 23.8666)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2287 #229D38
analogous
#76229D #9D2287 #9D2249
triadic
#9D2287 #879D22 #22879D
tetradic
#9D2287 #9D7622 #229D38 #22499D
square
#9D2287 #9D7622 #229D38 #22499D
split-complementary
#9D2287 #499D22 #229D76
monochromatic
#380C30 #6B175C #9D2287 #CF2DB2 #DC5DC5

Accessibility & contrast

On white

6.97
#9D2287 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9D2287 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2287
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2287#FFFFFF#000000##FFFFFF
##9D22871.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254E8A
Deuteranopia (green-blind)
#516084
Tritanopia (blue-blind)
#A52B53
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d2287;
/* rgb */ color: rgb(157, 34, 135);
/* oklch */ color: oklch(49.0% 0.189 336.6);
Tailwind
colors: {
  custom: {
    50: '#be6caa',
    500: '#9d2287',
    950: '#000000',
  },
}
SCSS
$custom: #9d2287;
$custom-light: #be6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2287",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 310.732,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49028,
    "c": 0.18926,
    "h": 336.6
  },
  "luminance": 0.10061
}

Semantic roles & 50–950 ramp

primary
#9D2287
secondary
#5AC16D
accent
#E75E40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D2287

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

Preview Lab → · Contrast checker → · Palette generator →

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