#9F2A7E#9F2A7E

#9F2A7E is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.6% C 0.176 H 341.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#9F2A7E
RGBrgb(159, 42, 126)
HSLhsl(317, 58%, 39%)
HSVhsv(317, 74%, 62%)
CMYKcmyk(0%, 73.6%, 20.8%, 37.6%)
CIE-LABlab(38.79, 55.65, -20.68)
CIE-LCHlch(38.79, 59.37, 339.62°)
OKLaboklab(49.56% 0.1668 -0.0556)
OKLCHoklch(49.56% 0.176 341.6)
XYZxyz(18.8925, 10.5351, 20.7731)
Luminance0.1053 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A7E #2A9F4B
analogous
#862A9F #9F2A7E #9F2A44
triadic
#9F2A7E #7E9F2A #2A7E9F
tetradic
#9F2A7E #9F862A #2A9F4B #2A449F
square
#9F2A7E #9F862A #2A9F4B #2A449F
split-complementary
#9F2A7E #449F2A #2A9F86
monochromatic
#3E1031 #6F1D58 #9F2A7E #CB3BA3 #D86BB9

Accessibility & contrast

On white

6.76
#9F2A7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9F2A7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A7E
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A7E#FFFFFF#000000##FFFFFF
##9F2A7E1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F80
Deuteranopia (green-blind)
#59627B
Tritanopia (blue-blind)
#A92C50
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f2a7e;
/* rgb */ color: rgb(159, 42, 126);
/* oklch */ color: oklch(49.6% 0.176 341.6);
Tailwind
colors: {
  custom: {
    50: '#bf6fa3',
    500: '#9f2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a7e;
$custom-light: #bf6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a7e",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 316.923,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49556,
    "c": 0.17579,
    "h": 341.6
  },
  "luminance": 0.10533
}

Semantic roles & 50–950 ramp

primary
#9F2A7E
secondary
#66BF7F
accent
#E17246
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9F2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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