#9F2A7D#9F2A7D

#9F2A7D is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.5% C 0.175 H 342.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9F2A7D
RGBrgb(159, 42, 125)
HSLhsl(317, 58%, 39%)
HSVhsv(317, 74%, 62%)
CMYKcmyk(0%, 73.6%, 21.4%, 37.6%)
CIE-LABlab(38.74, 55.52, -20.13)
CIE-LCHlch(38.74, 59.05, 340.07°)
OKLaboklab(49.51% 0.1666 -0.054)
OKLCHoklch(49.51% 0.175 342)
XYZxyz(18.8283, 10.5094, 20.4350)
Luminance0.1051 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A7D #2A9F4C
analogous
#872A9F #9F2A7D #9F2A43
triadic
#9F2A7D #7D9F2A #2A7D9F
tetradic
#9F2A7D #9F872A #2A9F4C #2A439F
square
#9F2A7D #9F872A #2A9F4C #2A439F
split-complementary
#9F2A7D #439F2A #2A9F87
monochromatic
#3E1031 #6F1D57 #9F2A7D #CB3BA1 #D86BB8

Accessibility & contrast

On white

6.77
#9F2A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F2A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A7D
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A7D#FFFFFF#000000##FFFFFF
##9F2A7D1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354F7F
Deuteranopia (green-blind)
#59627A
Tritanopia (blue-blind)
#A92B50
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f2a7d;
/* rgb */ color: rgb(159, 42, 125);
/* oklch */ color: oklch(49.5% 0.175 342.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fa3',
    500: '#9f2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a7d;
$custom-light: #bf6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a7d",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 317.436,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49509,
    "c": 0.17514,
    "h": 342
  },
  "luminance": 0.10508
}

Semantic roles & 50–950 ramp

primary
#9F2A7D
secondary
#66BF80
accent
#E17346
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9F2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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