#9F157A#9F157A

#9F157A is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.9% C 0.193 H 342.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#9F157A
RGBrgb(159, 21, 122)
HSLhsl(316, 77%, 35%)
HSVhsv(316, 87%, 62%)
CMYKcmyk(0%, 86.8%, 23.3%, 37.6%)
CIE-LABlab(36.58, 60.91, -21.60)
CIE-LCHlch(36.58, 64.62, 340.47°)
OKLaboklab(47.91% 0.1839 -0.058)
OKLCHoklch(47.91% 0.193 342.5)
XYZxyz(18.0798, 9.3144, 19.2543)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F157A #159F3A
analogous
#7F159F #9F157A #9F1535
triadic
#9F157A #7A9F15 #157A9F
tetradic
#9F157A #9F7F15 #159F3A #15359F
square
#9F157A #9F7F15 #159F3A #15359F
split-complementary
#9F157A #359F15 #159F7F
monochromatic
#330727 #690E51 #9F157A #D51CA3 #E748BC

Accessibility & contrast

On white

7.34
#9F157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#9F157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F157A
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F157A#FFFFFF#000000##FFFFFF
##9F157A1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28487C
Deuteranopia (green-blind)
#545E77
Tritanopia (blue-blind)
#AA1749
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9f157a;
/* rgb */ color: rgb(159, 21, 122);
/* oklch */ color: oklch(47.9% 0.193 342.5);
Tailwind
colors: {
  custom: {
    50: '#c067a0',
    500: '#9f157a',
    950: '#000000',
  },
}
SCSS
$custom: #9f157a;
$custom-light: #c067a0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f157a",
  "rgb": {
    "r": 159,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 316.087,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47905,
    "c": 0.19285,
    "h": 342.5
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#9F157A
secondary
#48C86A
accent
#F36835
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070F
muted
#827A7E

Preview Lab

Preview with #9F157A

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

Preview Lab → · Contrast checker → · Palette generator →

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