#9F2D8A#9F2D8A

#9F2D8A is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.4% C 0.180 H 336.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#9F2D8A
RGBrgb(159, 45, 138)
HSLhsl(311, 56%, 40%)
HSVhsv(311, 72%, 62%)
CMYKcmyk(0%, 71.7%, 13.2%, 37.6%)
CIE-LABlab(39.72, 56.34, -26.62)
CIE-LCHlch(39.72, 62.31, 334.71°)
OKLaboklab(50.42% 0.1653 -0.0725)
OKLCHoklch(50.42% 0.18 336.3)
XYZxyz(19.8242, 11.0844, 25.1353)
Luminance0.1108 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2D8A #2D9F42
analogous
#7B2D9F #9F2D8A #9F2D51
triadic
#9F2D8A #8A9F2D #2D8A9F
tetradic
#9F2D8A #9F7B2D #2D9F42 #2D519F
square
#9F2D8A #9F7B2D #2D9F42 #2D519F
split-complementary
#9F2D8A #519F2D #2D9F7B
monochromatic
#401237 #6F2061 #9F2D8A #C940B0 #D670C4

Accessibility & contrast

On white

6.53
#9F2D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9F2D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2D8A
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2D8A#FFFFFF#000000##FFFFFF
##9F2D8A1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#A73458
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2d8a;
/* rgb */ color: rgb(159, 45, 138);
/* oklch */ color: oklch(50.4% 0.180 336.3);
Tailwind
colors: {
  custom: {
    50: '#bf71ac',
    500: '#9f2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f2d8a;
$custom-light: #bf71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2d8a",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 311.053,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.50417,
    "c": 0.18047,
    "h": 336.3
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#9F2D8A
secondary
#6ABE79
accent
#DF6449
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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