#9F2787#9F2787

#9F2787 is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.7% C 0.185 H 337.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9F2787
RGBrgb(159, 39, 135)
HSLhsl(312, 61%, 39%)
HSVhsv(312, 75%, 62%)
CMYKcmyk(0%, 75.5%, 15.1%, 37.6%)
CIE-LABlab(38.85, 57.95, -26.13)
CIE-LCHlch(38.85, 63.57, 335.72°)
OKLaboklab(49.74% 0.1711 -0.071)
OKLCHoklch(49.74% 0.185 337.4)
XYZxyz(19.3972, 10.5731, 23.9362)
Luminance0.1057 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2787 #279F3F
analogous
#7B279F #9F2787 #9F274B
triadic
#9F2787 #879F27 #27879F
tetradic
#9F2787 #9F7B27 #279F3F #274B9F
square
#9F2787 #9F7B27 #279F3F #274B9F
split-complementary
#9F2787 #4B9F27 #279F7B
monochromatic
#3D0F34 #6E1B5D #9F2787 #CE36AF #DA67C3

Accessibility & contrast

On white

6.74
#9F2787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9F2787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2787
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2787#FFFFFF#000000##FFFFFF
##9F27871.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B508A
Deuteranopia (green-blind)
#546284
Tritanopia (blue-blind)
#A82E54
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f2787;
/* rgb */ color: rgb(159, 39, 135);
/* oklch */ color: oklch(49.7% 0.185 337.4);
Tailwind
colors: {
  custom: {
    50: '#bf6eaa',
    500: '#9f2787',
    950: '#000000',
  },
}
SCSS
$custom: #9f2787;
$custom-light: #bf6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2787",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 312,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49741,
    "c": 0.18523,
    "h": 337.4
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#9F2787
secondary
#62C075
accent
#E46444
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2787

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

Preview Lab → · Contrast checker → · Palette generator →

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