#9D2E87#9D2E87

#9D2E87 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.176 H 336.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9D2E87
RGBrgb(157, 46, 135)
HSLhsl(312, 55%, 40%)
HSVhsv(312, 71%, 62%)
CMYKcmyk(0%, 70.7%, 14%, 38.4%)
CIE-LABlab(39.37, 55.01, -25.36)
CIE-LCHlch(39.37, 60.57, 335.25°)
OKLaboklab(50.05% 0.1618 -0.0689)
OKLCHoklch(50.05% 0.176 336.9)
XYZxyz(19.2551, 10.8731, 24.0016)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2E87 #2E9D44
analogous
#7C2E9D #9D2E87 #9D2E4F
triadic
#9D2E87 #879D2E #2E879D
tetradic
#9D2E87 #9D7C2E #2E9D44 #2E4F9D
square
#9D2E87 #9D7C2E #2E9D44 #2E4F9D
split-complementary
#9D2E87 #4F9D2E #2E9D7C
monochromatic
#3E1236 #6E205E #9D2E87 #C741AD #D570C1

Accessibility & contrast

On white

6.62
#9D2E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9D2E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2E87
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2E87#FFFFFF#000000##FFFFFF
##9D2E871.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31528A
Deuteranopia (green-blind)
#566384
Tritanopia (blue-blind)
#A53456
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2e87;
/* rgb */ color: rgb(157, 46, 135);
/* oklch */ color: oklch(50.0% 0.176 336.9);
Tailwind
colors: {
  custom: {
    50: '#bd71aa',
    500: '#9d2e87',
    950: '#000000',
  },
}
SCSS
$custom: #9d2e87;
$custom-light: #bd71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2e87",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 311.892,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50046,
    "c": 0.17582,
    "h": 336.9
  },
  "luminance": 0.10871
}

Semantic roles & 50–950 ramp

primary
#9D2E87
secondary
#6ABD7B
accent
#DE674A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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