#971F7F#971F7F

#971F7F is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.4% C 0.183 H 337.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#971F7F
RGBrgb(151, 31, 127)
HSLhsl(312, 66%, 36%)
HSVhsv(312, 79%, 59%)
CMYKcmyk(0%, 79.5%, 15.9%, 40.8%)
CIE-LABlab(36.16, 57.33, -25.49)
CIE-LCHlch(36.16, 62.74, 336.03°)
OKLaboklab(47.41% 0.1697 -0.0693)
OKLCHoklch(47.41% 0.183 337.8)
XYZxyz(17.0836, 9.0932, 20.9300)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F7F #1F9737
analogous
#731F97 #971F7F #971F43
triadic
#971F7F #7F971F #1F7F97
tetradic
#971F7F #97731F #1F9737 #1F4397
square
#971F7F #97731F #1F9737 #1F4397
split-complementary
#971F7F #43971F #1F9773
monochromatic
#310A2A #641554 #971F7F #CA29AA #DC54C1

Accessibility & contrast

On white

7.45
#971F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#971F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F7F
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F7F#FFFFFF#000000##FFFFFF
##971F7F1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254982
Deuteranopia (green-blind)
#4E5C7C
Tritanopia (blue-blind)
#A0264E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #971f7f;
/* rgb */ color: rgb(151, 31, 127);
/* oklch */ color: oklch(47.4% 0.183 337.8);
Tailwind
colors: {
  custom: {
    50: '#b969a4',
    500: '#971f7f',
    950: '#000000',
  },
}
SCSS
$custom: #971f7f;
$custom-light: #b969a4;
$custom-dark: #000000;
JSON
{
  "hex": "#971f7f",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 312,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47406,
    "c": 0.18331,
    "h": 337.8
  },
  "luminance": 0.09092
}

Semantic roles & 50–950 ramp

primary
#971F7F
secondary
#52BF68
accent
#E9613F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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