#9F2B8A#9F2B8A

#9F2B8A is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.183 H 336.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9F2B8A
RGBrgb(159, 43, 138)
HSLhsl(311, 57%, 40%)
HSVhsv(311, 73%, 62%)
CMYKcmyk(0%, 73%, 13.2%, 37.6%)
CIE-LABlab(39.47, 57.05, -27.01)
CIE-LCHlch(39.47, 63.12, 334.67°)
OKLaboklab(50.24% 0.1674 -0.0736)
OKLCHoklch(50.24% 0.183 336.3)
XYZxyz(19.7497, 10.9354, 25.1104)
Luminance0.1093 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2B8A #2B9F40
analogous
#7A2B9F #9F2B8A #9F2B50
triadic
#9F2B8A #8A9F2B #2B8A9F
tetradic
#9F2B8A #9F7A2B #2B9F40 #2B509F
square
#9F2B8A #9F7A2B #2B9F40 #2B509F
split-complementary
#9F2B8A #509F2B #2B9F7A
monochromatic
#3F1136 #6F1E60 #9F2B8A #CA3DB1 #D76DC4

Accessibility & contrast

On white

6.59
#9F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9F2B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2B8A
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2B8A#FFFFFF#000000##FFFFFF
##9F2B8A1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528D
Deuteranopia (green-blind)
#556387
Tritanopia (blue-blind)
#A73357
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2b8a;
/* rgb */ color: rgb(159, 43, 138);
/* oklch */ color: oklch(50.2% 0.183 336.3);
Tailwind
colors: {
  custom: {
    50: '#bf70ac',
    500: '#9f2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f2b8a;
$custom-light: #bf70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2b8a",
  "rgb": {
    "r": 159,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 310.862,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50236,
    "c": 0.18284,
    "h": 336.3
  },
  "luminance": 0.10934
}

Semantic roles & 50–950 ramp

primary
#9F2B8A
secondary
#67BE77
accent
#E16347
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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