#9F1787#9F1787

#9F1787 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.7% C 0.200 H 337.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#9F1787
RGBrgb(159, 23, 135)
HSLhsl(311, 75%, 36%)
HSVhsv(311, 86%, 62%)
CMYKcmyk(0%, 85.5%, 15.1%, 37.6%)
CIE-LABlab(37.36, 62.23, -28.47)
CIE-LCHlch(37.36, 68.43, 335.42°)
OKLaboklab(48.67% 0.1839 -0.0776)
OKLCHoklch(48.67% 0.2 337.1)
XYZxyz(18.9781, 9.7349, 23.7965)
Luminance0.0973 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1787 #179F2F
analogous
#73179F #9F1787 #9F1743
triadic
#9F1787 #879F17 #17879F
tetradic
#9F1787 #9F7317 #179F2F #17439F
square
#9F1787 #9F7317 #179F2F #17439F
split-complementary
#9F1787 #439F17 #179F73
monochromatic
#34082C #6A0F5A #9F1787 #D41FB4 #E54BCA

Accessibility & contrast

On white

7.13
#9F1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9F1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1787
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1787#FFFFFF#000000##FFFFFF
##9F17871.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#505F84
Tritanopia (blue-blind)
#A82350
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f1787;
/* rgb */ color: rgb(159, 23, 135);
/* oklch */ color: oklch(48.7% 0.200 337.1);
Tailwind
colors: {
  custom: {
    50: '#c069aa',
    500: '#9f1787',
    950: '#000000',
  },
}
SCSS
$custom: #9f1787;
$custom-light: #c069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1787",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 310.588,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48671,
    "c": 0.19963,
    "h": 337.1
  },
  "luminance": 0.09733
}

Semantic roles & 50–950 ramp

primary
#9F1787
secondary
#4BC761
accent
#F15736
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F1787

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

Preview Lab → · Contrast checker → · Palette generator →

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