#971B7F#971B7F

#971B7F is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.1% C 0.187 H 337.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#971B7F
RGBrgb(151, 27, 127)
HSLhsl(312, 70%, 35%)
HSVhsv(312, 82%, 59%)
CMYKcmyk(0%, 82.1%, 15.9%, 40.8%)
CIE-LABlab(35.79, 58.42, -26.08)
CIE-LCHlch(35.79, 63.98, 335.94°)
OKLaboklab(47.14% 0.173 -0.0709)
OKLCHoklch(47.14% 0.187 337.7)
XYZxyz(16.9856, 8.8972, 20.8973)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971B7F #1B9733
analogous
#711B97 #971B7F #971B41
triadic
#971B7F #7F971B #1B7F97
tetradic
#971B7F #97711B #1B9733 #1B4197
square
#971B7F #97711B #1B9733 #1B4197
split-complementary
#971B7F #41971B #1B9771
monochromatic
#2F0828 #631253 #971B7F #CB24AB #DF4DC3

Accessibility & contrast

On white

7.56
#971B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#971B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971B7F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971B7F#FFFFFF#000000##FFFFFF
##971B7F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214882
Deuteranopia (green-blind)
#4D5B7C
Tritanopia (blue-blind)
#A0244D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #971b7f;
/* rgb */ color: rgb(151, 27, 127);
/* oklch */ color: oklch(47.1% 0.187 337.7);
Tailwind
colors: {
  custom: {
    50: '#ba68a4',
    500: '#971b7f',
    950: '#000000',
  },
}
SCSS
$custom: #971b7f;
$custom-light: #ba68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#971b7f",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 311.613,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47135,
    "c": 0.18697,
    "h": 337.7
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#971B7F
secondary
#4CC163
accent
#EC5E3B
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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