#9D1F87#9D1F87

#9D1F87 is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.8% C 0.192 H 336.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#9D1F87
RGBrgb(157, 31, 135)
HSLhsl(310, 67%, 37%)
HSVhsv(310, 80%, 62%)
CMYKcmyk(0%, 80.3%, 14%, 38.4%)
CIE-LABlab(37.66, 59.86, -28.02)
CIE-LCHlch(37.66, 66.10, 334.91°)
OKLaboklab(48.82% 0.1762 -0.0764)
OKLCHoklch(48.82% 0.192 336.6)
XYZxyz(18.7681, 9.8991, 23.8393)
Luminance0.0990 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F87 #1F9D35
analogous
#741F9D #9D1F87 #9D1F48
triadic
#9D1F87 #879D1F #1F879D
tetradic
#9D1F87 #9D741F #1F9D35 #1F489D
square
#9D1F87 #9D741F #1F9D35 #1F489D
split-complementary
#9D1F87 #489D1F #1F9D74
monochromatic
#370B2F #6A155B #9D1F87 #D029B3 #DE58C7

Accessibility & contrast

On white

7.05
#9D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9D1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F87
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F87#FFFFFF#000000##FFFFFF
##9D1F871.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224D8A
Deuteranopia (green-blind)
#505F84
Tritanopia (blue-blind)
#A62952
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1f87;
/* rgb */ color: rgb(157, 31, 135);
/* oklch */ color: oklch(48.8% 0.192 336.6);
Tailwind
colors: {
  custom: {
    50: '#be6baa',
    500: '#9d1f87',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f87;
$custom-light: #be6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f87",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 310.476,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48816,
    "c": 0.1921,
    "h": 336.6
  },
  "luminance": 0.09897
}

Semantic roles & 50–950 ramp

primary
#9D1F87
secondary
#56C269
accent
#EA5C3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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