#9F2873#9F2873

#9F2873 is a mid, vivid pink. Relative luminance 0.101; OKLCH L 48.9% C 0.171 H 346.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9F2873
RGBrgb(159, 40, 115)
HSLhsl(322, 60%, 39%)
HSVhsv(322, 75%, 62%)
CMYKcmyk(0%, 74.8%, 27.7%, 37.6%)
CIE-LABlab(38.07, 54.87, -14.92)
CIE-LCHlch(38.07, 56.86, 344.79°)
OKLaboklab(48.88% 0.1667 -0.0395)
OKLCHoklch(48.88% 0.171 346.7)
XYZxyz(18.1522, 10.1283, 17.2153)
Luminance0.1013 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2873 #289F54
analogous
#90289F #9F2873 #9F2838
triadic
#9F2873 #739F28 #28739F
tetradic
#9F2873 #9F9028 #289F54 #28389F
square
#9F2873 #9F9028 #289F54 #28389F
split-complementary
#9F2873 #389F28 #289F90
monochromatic
#3D0F2C #6E1C50 #9F2873 #CD3796 #D968AF

Accessibility & contrast

On white

6.94
#9F2873 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9F2873 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2873
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2873#FFFFFF#000000##FFFFFF
##9F28731.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384D75
Deuteranopia (green-blind)
#5C6170
Tritanopia (blue-blind)
#AA244A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f2873;
/* rgb */ color: rgb(159, 40, 115);
/* oklch */ color: oklch(48.9% 0.171 346.7);
Tailwind
colors: {
  custom: {
    50: '#bf6e9b',
    500: '#9f2873',
    950: '#000000',
  },
}
SCSS
$custom: #9f2873;
$custom-light: #bf6e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2873",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 322.185,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48882,
    "c": 0.17134,
    "h": 346.7
  },
  "luminance": 0.10126
}

Semantic roles & 50–950 ramp

primary
#9F2873
secondary
#64BF85
accent
#E37F45
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9F2873

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

Preview Lab → · Contrast checker → · Palette generator →

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