#971A7D#971A7D

#971A7D is a mid, vivid pink. Relative luminance 0.088; OKLCH L 47.0% C 0.186 H 338.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#971A7D
RGBrgb(151, 26, 125)
HSLhsl(312, 71%, 35%)
HSVhsv(312, 83%, 59%)
CMYKcmyk(0%, 82.8%, 17.2%, 40.8%)
CIE-LABlab(35.60, 58.39, -25.13)
CIE-LCHlch(35.60, 63.57, 336.72°)
OKLaboklab(46.97% 0.1736 -0.0682)
OKLCHoklch(46.97% 0.186 338.5)
XYZxyz(16.8340, 8.8005, 20.2102)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A7D #1A9734
analogous
#731A97 #971A7D #971A3F
triadic
#971A7D #7D971A #1A7D97
tetradic
#971A7D #97731A #1A9734 #1A3F97
square
#971A7D #97731A #1A9734 #1A3F97
split-complementary
#971A7D #3F971A #1A9773
monochromatic
#2F0827 #631152 #971A7D #CB23A8 #E04BC1

Accessibility & contrast

On white

7.61
#971A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#971A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971A7D
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A7D#FFFFFF#000000##FFFFFF
##971A7D1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#4E5A7A
Tritanopia (blue-blind)
#A0224B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #971a7d;
/* rgb */ color: rgb(151, 26, 125);
/* oklch */ color: oklch(47.0% 0.186 338.5);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#971a7d',
    950: '#000000',
  },
}
SCSS
$custom: #971a7d;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#971a7d",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 312.48,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46967,
    "c": 0.18649,
    "h": 338.5
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#971A7D
secondary
#4BC264
accent
#ED603A
background
#FBF6FA
surface
#F7EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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