#9F1872#9F1872

#9F1872 is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.7% C 0.186 H 346.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#9F1872
RGBrgb(159, 24, 114)
HSLhsl(320, 74%, 36%)
HSVhsv(320, 85%, 62%)
CMYKcmyk(0%, 84.9%, 28.3%, 37.6%)
CIE-LABlab(36.44, 59.27, -16.78)
CIE-LCHlch(36.44, 61.60, 344.19°)
OKLaboklab(47.69% 0.1806 -0.0445)
OKLCHoklch(47.69% 0.186 346.1)
XYZxyz(17.6629, 9.2412, 16.7699)
Luminance0.0924 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1872 #189F45
analogous
#88189F #9F1872 #9F182E
triadic
#9F1872 #729F18 #18729F
tetradic
#9F1872 #9F8818 #189F45 #182E9F
square
#9F1872 #9F8818 #189F45 #182E9F
split-complementary
#9F1872 #2E9F18 #189F88
monochromatic
#350826 #6A104C #9F1872 #D42098 #E44DB2

Accessibility & contrast

On white

7.37
#9F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#9F1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1872
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1872#FFFFFF#000000##FFFFFF
##9F18721.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4774
Deuteranopia (green-blind)
#585E6F
Tritanopia (blue-blind)
#AA1245
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9f1872;
/* rgb */ color: rgb(159, 24, 114);
/* oklch */ color: oklch(47.7% 0.186 346.1);
Tailwind
colors: {
  custom: {
    50: '#c0689a',
    500: '#9f1872',
    950: '#000000',
  },
}
SCSS
$custom: #9f1872;
$custom-light: #c0689a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1872",
  "rgb": {
    "r": 159,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 320,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47689,
    "c": 0.18605,
    "h": 346.1
  },
  "luminance": 0.09239
}

Semantic roles & 50–950 ramp

primary
#9F1872
secondary
#4DC675
accent
#F07537
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9F1872

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

Preview Lab → · Contrast checker → · Palette generator →

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