#9F288A#9F288A

#9F288A is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.0% C 0.186 H 336.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9F288A
RGBrgb(159, 40, 138)
HSLhsl(311, 60%, 39%)
HSVhsv(311, 75%, 62%)
CMYKcmyk(0%, 74.8%, 13.2%, 37.6%)
CIE-LABlab(39.11, 58.06, -27.57)
CIE-LCHlch(39.11, 64.28, 334.60°)
OKLaboklab(49.98% 0.1704 -0.0751)
OKLCHoklch(49.98% 0.186 336.2)
XYZxyz(19.6446, 10.7253, 25.0754)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F288A #289F3D
analogous
#79289F #9F288A #9F284F
triadic
#9F288A #8A9F28 #288A9F
tetradic
#9F288A #9F7928 #289F3D #284F9F
square
#9F288A #9F7928 #289F3D #284F9F
split-complementary
#9F288A #4F9F28 #289F79
monochromatic
#3D0F35 #6E1C60 #9F288A #CD37B2 #D968C5

Accessibility & contrast

On white

6.68
#9F288A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9F288A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F288A
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F288A#FFFFFF#000000##FFFFFF
##9F288A1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#546287
Tritanopia (blue-blind)
#A73056
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f288a;
/* rgb */ color: rgb(159, 40, 138);
/* oklch */ color: oklch(50.0% 0.186 336.2);
Tailwind
colors: {
  custom: {
    50: '#bf6eac',
    500: '#9f288a',
    950: '#000000',
  },
}
SCSS
$custom: #9f288a;
$custom-light: #bf6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f288a",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 310.588,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49978,
    "c": 0.18624,
    "h": 336.2
  },
  "luminance": 0.10723
}

Semantic roles & 50–950 ramp

primary
#9F288A
secondary
#64BF74
accent
#E36145
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F288A

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

Preview Lab → · Contrast checker → · Palette generator →

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