#9D1F76#9D1F76

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

Color values

HEX#9D1F76
RGBrgb(157, 31, 118)
HSLhsl(319, 67%, 37%)
HSVhsv(319, 80%, 62%)
CMYKcmyk(0%, 80.3%, 24.8%, 38.4%)
CIE-LABlab(36.85, 57.53, -18.71)
CIE-LCHlch(36.85, 60.50, 341.99°)
OKLaboklab(47.97% 0.1741 -0.05)
OKLCHoklch(47.97% 0.181 344)
XYZxyz(17.6654, 9.4580, 18.0313)
Luminance0.0946 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F76 #1F9D46
analogous
#851F9D #9D1F76 #9D1F37
triadic
#9D1F76 #769D1F #1F769D
tetradic
#9D1F76 #9D851F #1F9D46 #1F379D
square
#9D1F76 #9D851F #1F9D46 #1F379D
split-complementary
#9D1F76 #379D1F #1F9D85
monochromatic
#370B29 #6A1550 #9D1F76 #D0299C #DE58B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D1F76#FFFFFF#000000##FFFFFF
##9D1F761.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)
#2F4978
Deuteranopia (green-blind)
#575E73
Tritanopia (blue-blind)
#A81E49
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d1f76;
/* rgb */ color: rgb(157, 31, 118);
/* oklch */ color: oklch(48.0% 0.181 344.0);
Tailwind
colors: {
  custom: {
    50: '#be6a9d',
    500: '#9d1f76',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f76;
$custom-light: #be6a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f76",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 318.571,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4797,
    "c": 0.18115,
    "h": 344
  },
  "luminance": 0.09456
}

Semantic roles & 50–950 ramp

primary
#9D1F76
secondary
#56C277
accent
#EA733E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9D1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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