#9C1F7D#9C1F7D

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

Color values

HEX#9C1F7D
RGBrgb(156, 31, 125)
HSLhsl(315, 67%, 37%)
HSVhsv(315, 80%, 61%)
CMYKcmyk(0%, 80.1%, 19.9%, 38.8%)
CIE-LABlab(36.99, 58.22, -22.89)
CIE-LCHlch(36.99, 62.56, 338.54°)
OKLaboklab(48.14% 0.1743 -0.0618)
OKLCHoklch(48.14% 0.185 340.5)
XYZxyz(17.9025, 9.5304, 20.2948)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C1F7D #1F9C3E
analogous
#7D1F9C #9C1F7D #9C1F3F
triadic
#9C1F7D #7D9C1F #1F7D9C
tetradic
#9C1F7D #9C7D1F #1F9C3E #1F3F9C
square
#9C1F7D #9C7D1F #1F9C3E #1F3F9C
split-complementary
#9C1F7D #3F9C1F #1F9C7D
monochromatic
#360B2B #691554 #9C1F7D #CF29A6 #DE58BC

Accessibility & contrast

On white

7.23
#9C1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9C1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9C1F7D
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C1F7D#FFFFFF#000000##FFFFFF
##9C1F7D1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#535E7A
Tritanopia (blue-blind)
#A6234D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9c1f7d;
/* rgb */ color: rgb(156, 31, 125);
/* oklch */ color: oklch(48.1% 0.185 340.5);
Tailwind
colors: {
  custom: {
    50: '#bd6aa3',
    500: '#9c1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9c1f7d;
$custom-light: #bd6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c1f7d",
  "rgb": {
    "r": 156,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 314.88,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48138,
    "c": 0.18489,
    "h": 340.5
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#9C1F7D
secondary
#55C170
accent
#EA693E
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9C1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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