#9D1F7F#9D1F7F

#9D1F7F is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.4% C 0.187 H 339.9°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#9D1F7F
RGBrgb(157, 31, 127)
HSLhsl(314, 67%, 37%)
HSVhsv(314, 80%, 62%)
CMYKcmyk(0%, 80.3%, 19.1%, 38.4%)
CIE-LABlab(37.27, 58.73, -23.69)
CIE-LCHlch(37.27, 63.33, 338.04°)
OKLaboklab(48.4% 0.1755 -0.064)
OKLCHoklch(48.4% 0.187 339.9)
XYZxyz(18.2259, 9.6822, 20.9836)
Luminance0.0968 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F7F #1F9D3D
analogous
#7C1F9D #9D1F7F #9D1F40
triadic
#9D1F7F #7F9D1F #1F7F9D
tetradic
#9D1F7F #9D7C1F #1F9D3D #1F409D
square
#9D1F7F #9D7C1F #1F9D3D #1F409D
split-complementary
#9D1F7F #409D1F #1F9D7C
monochromatic
#370B2C #6A1556 #9D1F7F #D029A8 #DE58BE

Accessibility & contrast

On white

7.15
#9D1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9D1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F7F
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F7F#FFFFFF#000000##FFFFFF
##9D1F7F1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#535F7C
Tritanopia (blue-blind)
#A7244E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d1f7f;
/* rgb */ color: rgb(157, 31, 127);
/* oklch */ color: oklch(48.4% 0.187 339.9);
Tailwind
colors: {
  custom: {
    50: '#be6aa4',
    500: '#9d1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f7f;
$custom-light: #be6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f7f",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 314.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48404,
    "c": 0.18677,
    "h": 339.9
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#9D1F7F
secondary
#56C270
accent
#EA673E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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