#9D1B7E#9D1B7E

#9D1B7E is a mid, vivid pink. Relative luminance 0.095; OKLCH L 48.1% C 0.190 H 340.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#9D1B7E
RGBrgb(157, 27, 126)
HSLhsl(314, 71%, 36%)
HSVhsv(314, 83%, 62%)
CMYKcmyk(0%, 82.8%, 19.7%, 38.4%)
CIE-LABlab(36.86, 59.64, -23.70)
CIE-LCHlch(36.86, 64.18, 338.33°)
OKLaboklab(48.09% 0.1785 -0.0641)
OKLCHoklch(48.09% 0.19 340.3)
XYZxyz(18.0630, 9.4602, 20.6094)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B7E #1B9D3A
analogous
#7B1B9D #9D1B7E #9D1B3D
triadic
#9D1B7E #7E9D1B #1B7E9D
tetradic
#9D1B7E #9D7B1B #1B9D3A #1B3D9D
square
#9D1B7E #9D7B1B #1B9D3A #1B3D9D
split-complementary
#9D1B7E #3D9D1B #1B9D7B
monochromatic
#35092A #691254 #9D1B7E #D124A8 #E151BF

Accessibility & contrast

On white

7.26
#9D1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#9D1B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1B7E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B7E#FFFFFF#000000##FFFFFF
##9D1B7E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A80
Deuteranopia (green-blind)
#535E7B
Tritanopia (blue-blind)
#A7204C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d1b7e;
/* rgb */ color: rgb(157, 27, 126);
/* oklch */ color: oklch(48.1% 0.190 340.3);
Tailwind
colors: {
  custom: {
    50: '#be69a3',
    500: '#9d1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b7e;
$custom-light: #be69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b7e",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 314.308,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.48094,
    "c": 0.18966,
    "h": 340.3
  },
  "luminance": 0.09458
}

Semantic roles & 50–950 ramp

primary
#9D1B7E
secondary
#50C46C
accent
#ED653A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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