#971B7D#971B7D

#971B7D is a mid, vivid pink. Relative luminance 0.088; OKLCH L 47.0% C 0.186 H 338.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#971B7D
RGBrgb(151, 27, 125)
HSLhsl(313, 70%, 35%)
HSVhsv(313, 82%, 59%)
CMYKcmyk(0%, 82.1%, 17.2%, 40.8%)
CIE-LABlab(35.69, 58.14, -24.99)
CIE-LCHlch(35.69, 63.28, 336.74°)
OKLaboklab(47.03% 0.1728 -0.0678)
OKLCHoklch(47.03% 0.186 338.6)
XYZxyz(16.8565, 8.8455, 20.2177)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971B7D #1B9735
analogous
#731B97 #971B7D #971B3F
triadic
#971B7D #7D971B #1B7D97
tetradic
#971B7D #97731B #1B9735 #1B3F97
square
#971B7D #97731B #1B9735 #1B3F97
split-complementary
#971B7D #3F971B #1B9773
monochromatic
#2F0827 #631252 #971B7D #CB24A8 #DF4DC1

Accessibility & contrast

On white

7.58
#971B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#971B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971B7D
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971B7D#FFFFFF#000000##FFFFFF
##971B7D1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#4E5B7A
Tritanopia (blue-blind)
#A0224C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #971b7d;
/* rgb */ color: rgb(151, 27, 125);
/* oklch */ color: oklch(47.0% 0.186 338.6);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#971b7d',
    950: '#000000',
  },
}
SCSS
$custom: #971b7d;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#971b7d",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 312.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4703,
    "c": 0.18563,
    "h": 338.6
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#971B7D
secondary
#4CC165
accent
#EC603B
background
#FBF6FA
surface
#F7EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971B7D

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

Preview Lab → · Contrast checker → · Palette generator →

#971B7D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva