#9F1B7A#9F1B7A

#9F1B7A is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.2% C 0.188 H 342.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9F1B7A
RGBrgb(159, 27, 122)
HSLhsl(317, 71%, 36%)
HSVhsv(317, 83%, 62%)
CMYKcmyk(0%, 83%, 23.3%, 37.6%)
CIE-LABlab(37.04, 59.57, -20.88)
CIE-LCHlch(37.04, 63.13, 340.68°)
OKLaboklab(48.24% 0.1798 -0.056)
OKLCHoklch(48.24% 0.188 342.7)
XYZxyz(18.2036, 9.5619, 19.2956)
Luminance0.0956 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1B7A #1B9F40
analogous
#821B9F #9F1B7A #9F1B38
triadic
#9F1B7A #7A9F1B #1B7A9F
tetradic
#9F1B7A #9F821B #1B9F40 #1B389F
square
#9F1B7A #9F821B #1B9F40 #1B389F
split-complementary
#9F1B7A #389F1B #1B9F82
monochromatic
#36092A #6B1252 #9F1B7A #D324A2 #E253BA

Accessibility & contrast

On white

7.21
#9F1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9F1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1B7A
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1B7A#FFFFFF#000000##FFFFFF
##9F1B7A1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7C
Deuteranopia (green-blind)
#565F77
Tritanopia (blue-blind)
#AA1C4A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9f1b7a;
/* rgb */ color: rgb(159, 27, 122);
/* oklch */ color: oklch(48.2% 0.188 342.7);
Tailwind
colors: {
  custom: {
    50: '#c069a0',
    500: '#9f1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #9f1b7a;
$custom-light: #c069a0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1b7a",
  "rgb": {
    "r": 159,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 316.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48237,
    "c": 0.18832,
    "h": 342.7
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

primary
#9F1B7A
secondary
#51C572
accent
#EE6C3A
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9F1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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