#9F2871#9F2871

#9F2871 is a mid, vivid pink. Relative luminance 0.101; OKLCH L 48.8% C 0.170 H 347.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9F2871
RGBrgb(159, 40, 113)
HSLhsl(323, 60%, 39%)
HSVhsv(323, 75%, 62%)
CMYKcmyk(0%, 74.8%, 28.9%, 37.6%)
CIE-LABlab(37.99, 54.62, -13.79)
CIE-LCHlch(37.99, 56.33, 345.83°)
OKLaboklab(48.8% 0.1663 -0.0363)
OKLCHoklch(48.8% 0.17 347.7)
XYZxyz(18.0384, 10.0828, 16.6158)
Luminance0.1008 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2871 #289F56
analogous
#92289F #9F2871 #9F2836
triadic
#9F2871 #719F28 #28719F
tetradic
#9F2871 #9F9228 #289F56 #28369F
square
#9F2871 #9F9228 #289F56 #28369F
split-complementary
#9F2871 #369F28 #289F92
monochromatic
#3D0F2B #6E1C4E #9F2871 #CD3793 #D968AD

Accessibility & contrast

On white

6.96
#9F2871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9F2871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2871
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2871#FFFFFF#000000##FFFFFF
##9F28711.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#5C616E
Tritanopia (blue-blind)
#AA2349
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f2871;
/* rgb */ color: rgb(159, 40, 113);
/* oklch */ color: oklch(48.8% 0.170 347.7);
Tailwind
colors: {
  custom: {
    50: '#bf6e9a',
    500: '#9f2871',
    950: '#000000',
  },
}
SCSS
$custom: #9f2871;
$custom-light: #bf6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2871",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 323.193,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48797,
    "c": 0.17019,
    "h": 347.7
  },
  "luminance": 0.10081
}

Semantic roles & 50–950 ramp

primary
#9F2871
secondary
#64BF87
accent
#E38245
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9F2871

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

Preview Lab → · Contrast checker → · Palette generator →

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