#9F1788#9F1788

#9F1788 is a mid, highly saturated pink. Relative luminance 0.098; OKLCH L 48.7% C 0.200 H 336.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9F1788
RGBrgb(159, 23, 136)
HSLhsl(310, 75%, 36%)
HSVhsv(310, 86%, 62%)
CMYKcmyk(0%, 85.5%, 14.5%, 37.6%)
CIE-LABlab(37.41, 62.37, -29.00)
CIE-LCHlch(37.41, 68.78, 335.06°)
OKLaboklab(48.73% 0.184 -0.0791)
OKLCHoklch(48.73% 0.2 336.7)
XYZxyz(19.0488, 9.7632, 24.1691)
Luminance0.0976 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1788 #179F2E
analogous
#72179F #9F1788 #9F1744
triadic
#9F1788 #889F17 #17889F
tetradic
#9F1788 #9F7217 #179F2E #17449F
square
#9F1788 #9F7217 #179F2E #17449F
split-complementary
#9F1788 #449F17 #179F72
monochromatic
#34082D #6A0F5A #9F1788 #D41FB6 #E54BCB

Accessibility & contrast

On white

7.11
#9F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9F1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1788
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1788#FFFFFF#000000##FFFFFF
##9F17881.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8B
Deuteranopia (green-blind)
#4F5F85
Tritanopia (blue-blind)
#A82351
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f1788;
/* rgb */ color: rgb(159, 23, 136);
/* oklch */ color: oklch(48.7% 0.200 336.7);
Tailwind
colors: {
  custom: {
    50: '#c069ab',
    500: '#9f1788',
    950: '#000000',
  },
}
SCSS
$custom: #9f1788;
$custom-light: #c069ab;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1788",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 310.147,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48725,
    "c": 0.20029,
    "h": 336.7
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#9F1788
secondary
#4BC760
accent
#F15636
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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