#971F7D#971F7D

#971F7D is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.3% C 0.182 H 338.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#971F7D
RGBrgb(151, 31, 125)
HSLhsl(313, 66%, 36%)
HSVhsv(313, 79%, 59%)
CMYKcmyk(0%, 79.5%, 17.2%, 40.8%)
CIE-LABlab(36.06, 57.05, -24.40)
CIE-LCHlch(36.06, 62.04, 336.85°)
OKLaboklab(47.3% 0.1695 -0.0662)
OKLCHoklch(47.3% 0.182 338.7)
XYZxyz(16.9546, 9.0416, 20.2504)
Luminance0.0904 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F7D #1F9739
analogous
#751F97 #971F7D #971F41
triadic
#971F7D #7D971F #1F7D97
tetradic
#971F7D #97751F #1F9739 #1F4197
square
#971F7D #97751F #1F9739 #1F4197
split-complementary
#971F7D #41971F #1F9775
monochromatic
#310A29 #641553 #971F7D #CA29A7 #DC54BF

Accessibility & contrast

On white

7.48
#971F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#971F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F7D
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F7D#FFFFFF#000000##FFFFFF
##971F7D1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497F
Deuteranopia (green-blind)
#4F5B7A
Tritanopia (blue-blind)
#A0254D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #971f7d;
/* rgb */ color: rgb(151, 31, 125);
/* oklch */ color: oklch(47.3% 0.182 338.7);
Tailwind
colors: {
  custom: {
    50: '#b969a3',
    500: '#971f7d',
    950: '#000000',
  },
}
SCSS
$custom: #971f7d;
$custom-light: #b969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#971f7d",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 313,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47303,
    "c": 0.18196,
    "h": 338.7
  },
  "luminance": 0.0904
}

Semantic roles & 50–950 ramp

primary
#971F7D
secondary
#52BF6A
accent
#E9643F
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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