#9F287B#9F287B

#9F287B is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.2% C 0.176 H 342.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9F287B
RGBrgb(159, 40, 123)
HSLhsl(318, 60%, 39%)
HSVhsv(318, 75%, 62%)
CMYKcmyk(0%, 74.8%, 22.6%, 37.6%)
CIE-LABlab(38.41, 55.92, -19.39)
CIE-LCHlch(38.41, 59.19, 340.88°)
OKLaboklab(49.24% 0.1683 -0.0519)
OKLCHoklch(49.24% 0.176 342.8)
XYZxyz(18.6327, 10.3205, 19.7458)
Luminance0.1032 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F287B #289F4C
analogous
#88289F #9F287B #9F2840
triadic
#9F287B #7B9F28 #287B9F
tetradic
#9F287B #9F8828 #289F4C #28409F
square
#9F287B #9F8828 #289F4C #28409F
split-complementary
#9F287B #409F28 #289F88
monochromatic
#3D0F2F #6E1C55 #9F287B #CD37A0 #D968B7

Accessibility & contrast

On white

6.85
#9F287B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9F287B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F287B
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F287B#FFFFFF#000000##FFFFFF
##9F287B1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7D
Deuteranopia (green-blind)
#596178
Tritanopia (blue-blind)
#A9294E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f287b;
/* rgb */ color: rgb(159, 40, 123);
/* oklch */ color: oklch(49.2% 0.176 342.8);
Tailwind
colors: {
  custom: {
    50: '#bf6ea1',
    500: '#9f287b',
    950: '#000000',
  },
}
SCSS
$custom: #9f287b;
$custom-light: #bf6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f287b",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 318.151,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49241,
    "c": 0.17617,
    "h": 342.8
  },
  "luminance": 0.10319
}

Semantic roles & 50–950 ramp

primary
#9F287B
secondary
#64BF7F
accent
#E37545
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9F287B

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

Preview Lab → · Contrast checker → · Palette generator →

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