#9F288B#9F288B

#9F288B is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.0% C 0.187 H 335.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9F288B
RGBrgb(159, 40, 139)
HSLhsl(310, 60%, 39%)
HSVhsv(310, 75%, 62%)
CMYKcmyk(0%, 74.8%, 12.6%, 37.6%)
CIE-LABlab(39.16, 58.21, -28.10)
CIE-LCHlch(39.16, 64.64, 334.23°)
OKLaboklab(50.03% 0.1705 -0.0767)
OKLCHoklch(50.03% 0.187 335.8)
XYZxyz(19.7174, 10.7544, 25.4585)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F288B #289F3C
analogous
#78289F #9F288B #9F2850
triadic
#9F288B #8B9F28 #288B9F
tetradic
#9F288B #9F7828 #289F3C #28509F
square
#9F288B #9F7828 #289F3C #28509F
split-complementary
#9F288B #509F28 #289F78
monochromatic
#3D0F36 #6E1C60 #9F288B #CD37B4 #D968C6

Accessibility & contrast

On white

6.67
#9F288B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9F288B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F288B
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F288B#FFFFFF#000000##FFFFFF
##9F288B1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518E
Deuteranopia (green-blind)
#536388
Tritanopia (blue-blind)
#A73157
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f288b;
/* rgb */ color: rgb(159, 40, 139);
/* oklch */ color: oklch(50.0% 0.187 335.8);
Tailwind
colors: {
  custom: {
    50: '#bf6ead',
    500: '#9f288b',
    950: '#000000',
  },
}
SCSS
$custom: #9f288b;
$custom-light: #bf6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#9f288b",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 310.084,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5003,
    "c": 0.18695,
    "h": 335.8
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#9F288B
secondary
#64BF73
accent
#E35F45
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F288B

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

Preview Lab → · Contrast checker → · Palette generator →

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