#9D2F87#9D2F87

#9D2F87 is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.1% C 0.175 H 337.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9D2F87
RGBrgb(157, 47, 135)
HSLhsl(312, 54%, 40%)
HSVhsv(312, 70%, 62%)
CMYKcmyk(0%, 70.1%, 14%, 38.4%)
CIE-LABlab(39.50, 54.63, -25.15)
CIE-LCHlch(39.50, 60.14, 335.28°)
OKLaboklab(50.14% 0.1606 -0.0683)
OKLCHoklch(50.14% 0.175 337)
XYZxyz(19.2946, 10.9521, 24.0148)
Luminance0.1095 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F87 #2F9D45
analogous
#7C2F9D #9D2F87 #9D2F50
triadic
#9D2F87 #879D2F #2F879D
tetradic
#9D2F87 #9D7C2F #2F9D45 #2F509D
square
#9D2F87 #9D7C2F #2F9D45 #2F509D
split-complementary
#9D2F87 #509D2F #2F9D7C
monochromatic
#3F1336 #6E215F #9D2F87 #C743AC #D572C1

Accessibility & contrast

On white

6.58
#9D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9D2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F87
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F87#FFFFFF#000000##FFFFFF
##9D2F871.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d2f87;
/* rgb */ color: rgb(157, 47, 135);
/* oklch */ color: oklch(50.1% 0.175 337.0);
Tailwind
colors: {
  custom: {
    50: '#bd71aa',
    500: '#9d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f87;
$custom-light: #bd71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f87",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 312,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.50143,
    "c": 0.17456,
    "h": 337
  },
  "luminance": 0.1095
}

Semantic roles & 50–950 ramp

primary
#9D2F87
secondary
#6BBC7C
accent
#DD684B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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