#971F7B#971F7B

#971F7B is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.2% C 0.181 H 339.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#971F7B
RGBrgb(151, 31, 123)
HSLhsl(314, 66%, 36%)
HSVhsv(314, 79%, 59%)
CMYKcmyk(0%, 79.5%, 18.5%, 40.8%)
CIE-LABlab(35.97, 56.76, -23.30)
CIE-LCHlch(35.97, 61.36, 337.69°)
OKLaboklab(47.2% 0.1693 -0.063)
OKLCHoklch(47.2% 0.181 339.6)
XYZxyz(16.8281, 8.9910, 19.5843)
Luminance0.0899 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F7B #1F973B
analogous
#771F97 #971F7B #971F3F
triadic
#971F7B #7B971F #1F7B97
tetradic
#971F7B #97771F #1F973B #1F3F97
square
#971F7B #97771F #1F973B #1F3F97
split-complementary
#971F7B #3F971F #1F9777
monochromatic
#310A28 #641552 #971F7B #CA29A4 #DC54BC

Accessibility & contrast

On white

7.51
#971F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#971F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F7B
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F7B#FFFFFF#000000##FFFFFF
##971F7B1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#505B78
Tritanopia (blue-blind)
#A0244B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #971f7b;
/* rgb */ color: rgb(151, 31, 123);
/* oklch */ color: oklch(47.2% 0.181 339.6);
Tailwind
colors: {
  custom: {
    50: '#b969a1',
    500: '#971f7b',
    950: '#000000',
  },
}
SCSS
$custom: #971f7b;
$custom-light: #b969a1;
$custom-dark: #000000;
JSON
{
  "hex": "#971f7b",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 314,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47201,
    "c": 0.18063,
    "h": 339.6
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#971F7B
secondary
#52BF6C
accent
#E9673F
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #971F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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