#971B7E#971B7E

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

Color values

HEX#971B7E
RGBrgb(151, 27, 126)
HSLhsl(312, 70%, 35%)
HSVhsv(312, 82%, 59%)
CMYKcmyk(0%, 82.1%, 16.6%, 40.8%)
CIE-LABlab(35.74, 58.28, -25.53)
CIE-LCHlch(35.74, 63.63, 336.34°)
OKLaboklab(47.08% 0.1729 -0.0694)
OKLCHoklch(47.08% 0.186 338.1)
XYZxyz(16.9207, 8.8712, 20.5558)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971B7E #1B9734
analogous
#721B97 #971B7E #971B40
triadic
#971B7E #7E971B #1B7E97
tetradic
#971B7E #97721B #1B9734 #1B4097
square
#971B7E #97721B #1B9734 #1B4097
split-complementary
#971B7E #40971B #1B9772
monochromatic
#2F0827 #631253 #971B7E #CB24A9 #DF4DC2

Accessibility & contrast

On white

7.57
#971B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#971B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971B7E
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971B7E#FFFFFF#000000##FFFFFF
##971B7E1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#4E5B7B
Tritanopia (blue-blind)
#A0234C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #971b7e;
/* rgb */ color: rgb(151, 27, 126);
/* oklch */ color: oklch(47.1% 0.186 338.1);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#971b7e',
    950: '#000000',
  },
}
SCSS
$custom: #971b7e;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#971b7e",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 312.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47082,
    "c": 0.1863,
    "h": 338.1
  },
  "luminance": 0.0887
}

Semantic roles & 50–950 ramp

primary
#971B7E
secondary
#4CC164
accent
#EC5F3B
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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