#971F7E#971F7E

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

Color values

HEX#971F7E
RGBrgb(151, 31, 126)
HSLhsl(313, 66%, 36%)
HSVhsv(313, 79%, 59%)
CMYKcmyk(0%, 79.5%, 16.6%, 40.8%)
CIE-LABlab(36.11, 57.19, -24.94)
CIE-LCHlch(36.11, 62.39, 336.44°)
OKLaboklab(47.35% 0.1696 -0.0677)
OKLCHoklch(47.35% 0.183 338.2)
XYZxyz(17.0188, 9.0673, 20.5885)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F7E #1F9738
analogous
#741F97 #971F7E #971F42
triadic
#971F7E #7E971F #1F7E97
tetradic
#971F7E #97741F #1F9738 #1F4297
square
#971F7E #97741F #1F9738 #1F4297
split-complementary
#971F7E #42971F #1F9774
monochromatic
#310A29 #641554 #971F7E #CA29A8 #DC54C0

Accessibility & contrast

On white

7.46
#971F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #971F7E
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F7E#FFFFFF#000000##FFFFFF
##971F7E1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#4F5B7B
Tritanopia (blue-blind)
#A0264D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #971f7e;
/* rgb */ color: rgb(151, 31, 126);
/* oklch */ color: oklch(47.4% 0.183 338.2);
Tailwind
colors: {
  custom: {
    50: '#b969a3',
    500: '#971f7e',
    950: '#000000',
  },
}
SCSS
$custom: #971f7e;
$custom-light: #b969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#971f7e",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 312.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47354,
    "c": 0.18263,
    "h": 338.2
  },
  "luminance": 0.09066
}

Semantic roles & 50–950 ramp

primary
#971F7E
secondary
#52BF69
accent
#E9623F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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