#9F1786#9F1786

#9F1786 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.6% C 0.199 H 337.5°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9F1786
RGBrgb(159, 23, 134)
HSLhsl(311, 75%, 36%)
HSVhsv(311, 86%, 62%)
CMYKcmyk(0%, 85.5%, 15.7%, 37.6%)
CIE-LABlab(37.31, 62.09, -27.93)
CIE-LCHlch(37.31, 68.08, 335.78°)
OKLaboklab(48.62% 0.1839 -0.0761)
OKLCHoklch(48.62% 0.199 337.5)
XYZxyz(18.9080, 9.7068, 23.4275)
Luminance0.0970 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1786 #179F30
analogous
#74179F #9F1786 #9F1742
triadic
#9F1786 #869F17 #17869F
tetradic
#9F1786 #9F7417 #179F30 #17429F
square
#9F1786 #9F7417 #179F30 #17429F
split-complementary
#9F1786 #429F17 #179F74
monochromatic
#34082C #6A0F59 #9F1786 #D41FB3 #E54BC9

Accessibility & contrast

On white

7.14
#9F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9F1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F1786
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1786#FFFFFF#000000##FFFFFF
##9F17861.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B89
Deuteranopia (green-blind)
#505F83
Tritanopia (blue-blind)
#A82250
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f1786;
/* rgb */ color: rgb(159, 23, 134);
/* oklch */ color: oklch(48.6% 0.199 337.5);
Tailwind
colors: {
  custom: {
    50: '#c068a9',
    500: '#9f1786',
    950: '#000000',
  },
}
SCSS
$custom: #9f1786;
$custom-light: #c068a9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1786",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 311.029,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48618,
    "c": 0.19898,
    "h": 337.5
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#9F1786
secondary
#4BC762
accent
#F15936
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F1786

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

Preview Lab → · Contrast checker → · Palette generator →

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