#9F2A7C#9F2A7C

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

Color values

HEX#9F2A7C
RGBrgb(159, 42, 124)
HSLhsl(318, 58%, 39%)
HSVhsv(318, 74%, 62%)
CMYKcmyk(0%, 73.6%, 22%, 37.6%)
CIE-LABlab(38.70, 55.38, -19.57)
CIE-LCHlch(38.70, 58.73, 340.53°)
OKLaboklab(49.46% 0.1664 -0.0525)
OKLCHoklch(49.46% 0.175 342.5)
XYZxyz(18.7648, 10.4840, 20.1003)
Luminance0.1048 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A7C #2A9F4D
analogous
#882A9F #9F2A7C #9F2A41
triadic
#9F2A7C #7C9F2A #2A7C9F
tetradic
#9F2A7C #9F882A #2A9F4D #2A419F
square
#9F2A7C #9F882A #2A9F4D #2A419F
split-complementary
#9F2A7C #419F2A #2A9F88
monochromatic
#3E1030 #6F1D56 #9F2A7C #CB3BA0 #D86BB8

Accessibility & contrast

On white

6.78
#9F2A7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F2A7C
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A7C#FFFFFF#000000##FFFFFF
##9F2A7C1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354F7E
Deuteranopia (green-blind)
#5A6279
Tritanopia (blue-blind)
#A92B4F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f2a7c;
/* rgb */ color: rgb(159, 42, 124);
/* oklch */ color: oklch(49.5% 0.174 342.5);
Tailwind
colors: {
  custom: {
    50: '#bf6fa2',
    500: '#9f2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a7c;
$custom-light: #bf6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a7c",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 317.949,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49463,
    "c": 0.1745,
    "h": 342.5
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#9F2A7C
secondary
#66BF81
accent
#E17546
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9F2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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