#9B1F7C#9B1F7C

#9B1F7C is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.9% C 0.184 H 340.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#9B1F7C
RGBrgb(155, 31, 124)
HSLhsl(315, 67%, 36%)
HSVhsv(315, 80%, 61%)
CMYKcmyk(0%, 80%, 20%, 39.2%)
CIE-LABlab(36.75, 57.85, -22.64)
CIE-LCHlch(36.75, 62.12, 338.63°)
OKLaboklab(47.92% 0.1732 -0.0611)
OKLCHoklch(47.92% 0.184 340.6)
XYZxyz(17.6462, 9.4056, 19.9510)
Luminance0.0940 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F7C #1F9B3E
analogous
#7C1F9B #9B1F7C #9B1F3E
triadic
#9B1F7C #7C9B1F #1F7C9B
tetradic
#9B1F7C #9B7C1F #1F9B3E #1F3E9B
square
#9B1F7C #9B7C1F #1F9B3E #1F3E9B
split-complementary
#9B1F7C #3E9B1F #1F9B7C
monochromatic
#350B2A #681553 #9B1F7C #CE29A5 #DD57BC

Accessibility & contrast

On white

7.29
#9B1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#9B1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1F7C
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F7C#FFFFFF#000000##FFFFFF
##9B1F7C1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7E
Deuteranopia (green-blind)
#535D79
Tritanopia (blue-blind)
#A5234C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9b1f7c;
/* rgb */ color: rgb(155, 31, 124);
/* oklch */ color: oklch(47.9% 0.184 340.6);
Tailwind
colors: {
  custom: {
    50: '#bc6aa2',
    500: '#9b1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f7c;
$custom-light: #bc6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f7c",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 315,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4792,
    "c": 0.18366,
    "h": 340.6
  },
  "luminance": 0.09404
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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