#9F288D#9F288D

#9F288D is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.188 H 335.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9F288D
RGBrgb(159, 40, 141)
HSLhsl(309, 60%, 39%)
HSVhsv(309, 75%, 62%)
CMYKcmyk(0%, 74.8%, 11.3%, 37.6%)
CIE-LABlab(39.26, 58.51, -29.17)
CIE-LCHlch(39.26, 65.38, 333.50°)
OKLaboklab(50.14% 0.1707 -0.0797)
OKLCHoklch(50.14% 0.188 335)
XYZxyz(19.8648, 10.8134, 26.2351)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F288D #289F3A
analogous
#76289F #9F288D #9F2852
triadic
#9F288D #8D9F28 #288D9F
tetradic
#9F288D #9F7628 #289F3A #28529F
square
#9F288D #9F7628 #289F3A #28529F
split-complementary
#9F288D #529F28 #289F76
monochromatic
#3D0F36 #6E1C62 #9F288D #CD37B6 #D968C8

Accessibility & contrast

On white

6.64
#9F288D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9F288D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F288D
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F288D#FFFFFF#000000##FFFFFF
##9F288D1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#52638A
Tritanopia (blue-blind)
#A73258
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f288d;
/* rgb */ color: rgb(159, 40, 141);
/* oklch */ color: oklch(50.1% 0.188 335.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fae',
    500: '#9f288d',
    950: '#000000',
  },
}
SCSS
$custom: #9f288d;
$custom-light: #bf6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f288d",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 309.076,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50135,
    "c": 0.18838,
    "h": 335
  },
  "luminance": 0.10812
}

Semantic roles & 50–950 ramp

primary
#9F288D
secondary
#64BF71
accent
#E35D45
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F288D

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

Preview Lab → · Contrast checker → · Palette generator →

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