#9B1F7D#9B1F7D

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

Color values

HEX#9B1F7D
RGBrgb(155, 31, 125)
HSLhsl(315, 67%, 36%)
HSVhsv(315, 80%, 61%)
CMYKcmyk(0%, 80%, 19.4%, 39.2%)
CIE-LABlab(36.80, 57.99, -23.19)
CIE-LCHlch(36.80, 62.45, 338.20°)
OKLaboklab(47.97% 0.1733 -0.0627)
OKLCHoklch(47.97% 0.184 340.1)
XYZxyz(17.7098, 9.4310, 20.2858)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F7D #1F9B3D
analogous
#7B1F9B #9B1F7D #9B1F3F
triadic
#9B1F7D #7D9B1F #1F7D9B
tetradic
#9B1F7D #9B7B1F #1F9B3D #1F3F9B
square
#9B1F7D #9B7B1F #1F9B3D #1F3F9B
split-complementary
#9B1F7D #3F9B1F #1F9B7B
monochromatic
#350B2B #681554 #9B1F7D #CE29A6 #DD57BD

Accessibility & contrast

On white

7.28
#9B1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9B1F7D
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F7D#FFFFFF#000000##FFFFFF
##9B1F7D1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#535E7A
Tritanopia (blue-blind)
#A5244D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b1f7d;
/* rgb */ color: rgb(155, 31, 125);
/* oklch */ color: oklch(48.0% 0.184 340.1);
Tailwind
colors: {
  custom: {
    50: '#bc6aa3',
    500: '#9b1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f7d;
$custom-light: #bc6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f7d",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 314.516,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4797,
    "c": 0.1843,
    "h": 340.1
  },
  "luminance": 0.09429
}

Semantic roles & 50–950 ramp

primary
#9B1F7D
secondary
#55C16F
accent
#EA683E
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9B1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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