#9F187B#9F187B

#9F187B is a mid, vivid pink. Relative luminance 0.095; OKLCH L 48.1% C 0.191 H 342.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#9F187B
RGBrgb(159, 24, 123)
HSLhsl(316, 74%, 36%)
HSVhsv(316, 85%, 62%)
CMYKcmyk(0%, 84.9%, 22.6%, 37.6%)
CIE-LABlab(36.85, 60.40, -21.81)
CIE-LCHlch(36.85, 64.22, 340.14°)
OKLaboklab(48.11% 0.1821 -0.0587)
OKLCHoklch(48.11% 0.191 342.1)
XYZxyz(18.2006, 9.4562, 19.6018)
Luminance0.0945 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F187B #189F3C
analogous
#7F189F #9F187B #9F1837
triadic
#9F187B #7B9F18 #187B9F
tetradic
#9F187B #9F7F18 #189F3C #18379F
square
#9F187B #9F7F18 #189F3C #18379F
split-complementary
#9F187B #379F18 #189F7F
monochromatic
#350829 #6A1052 #9F187B #D420A4 #E44DBC

Accessibility & contrast

On white

7.26
#9F187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#9F187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F187B
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F187B#FFFFFF#000000##FFFFFF
##9F187B1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497D
Deuteranopia (green-blind)
#555E78
Tritanopia (blue-blind)
#A91A4A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9f187b;
/* rgb */ color: rgb(159, 24, 123);
/* oklch */ color: oklch(48.1% 0.191 342.1);
Tailwind
colors: {
  custom: {
    50: '#c068a1',
    500: '#9f187b',
    950: '#000000',
  },
}
SCSS
$custom: #9f187b;
$custom-light: #c068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f187b",
  "rgb": {
    "r": 159,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 316,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48111,
    "c": 0.19131,
    "h": 342.1
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#9F187B
secondary
#4DC66D
accent
#F06937
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070F
muted
#827A7E

Preview Lab

Preview with #9F187B

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

Preview Lab → · Contrast checker → · Palette generator →

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