#9F2157#9F2157

#9F2157 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.2% C 0.166 H 0.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#9F2157
RGBrgb(159, 33, 87)
HSLhsl(334, 66%, 38%)
HSVhsv(334, 79%, 62%)
CMYKcmyk(0%, 79.2%, 45.3%, 37.6%)
CIE-LABlab(36.27, 53.98, 0.16)
CIE-LCHlch(36.27, 53.98, 0.17°)
OKLaboklab(47.24% 0.1659 0.001)
OKLCHoklch(47.24% 0.166 0.3)
XYZxyz(16.5636, 9.1490, 9.9087)
Luminance0.0915 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2157 #219F69
analogous
#9F2196 #9F2157 #9F2A21
triadic
#9F2157 #579F21 #21579F
tetradic
#9F2157 #969F21 #219F69 #2A219F
square
#9F2157 #969F21 #219F69 #2A219F
split-complementary
#9F2157 #219F2A #21969F
monochromatic
#3A0C20 #6C163B #9F2157 #D22C73 #DD5D94

Accessibility & contrast

On white

7.42
#9F2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#9F2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F2157
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2157#FFFFFF#000000##FFFFFF
##9F21571.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4658
Deuteranopia (green-blind)
#615E54
Tritanopia (blue-blind)
#AD0339
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9f2157;
/* rgb */ color: rgb(159, 33, 87);
/* oklch */ color: oklch(47.2% 0.166 0.3);
Tailwind
colors: {
  custom: {
    50: '#c16a86',
    500: '#9f2157',
    950: '#000000',
  },
}
SCSS
$custom: #9f2157;
$custom-light: #c16a86;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2157",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 334.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47235,
    "c": 0.16585,
    "h": 0.3
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#9F2157
secondary
#5AC295
accent
#E9A03F
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9F2157

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

Preview Lab → · Contrast checker → · Palette generator →

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