#971A7E#971A7E

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

Color values

HEX#971A7E
RGBrgb(151, 26, 126)
HSLhsl(312, 71%, 35%)
HSVhsv(312, 83%, 59%)
CMYKcmyk(0%, 82.8%, 16.6%, 40.8%)
CIE-LABlab(35.65, 58.53, -25.67)
CIE-LCHlch(35.65, 63.91, 336.32°)
OKLaboklab(47.02% 0.1737 -0.0698)
OKLCHoklch(47.02% 0.187 338.1)
XYZxyz(16.8982, 8.8261, 20.5483)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A7E #1A9733
analogous
#721A97 #971A7E #971A40
triadic
#971A7E #7E971A #1A7E97
tetradic
#971A7E #97721A #1A9733 #1A4097
square
#971A7E #97721A #1A9733 #1A4097
split-complementary
#971A7E #40971A #1A9772
monochromatic
#2F0827 #631152 #971A7E #CB23AA #E04BC2

Accessibility & contrast

On white

7.60
#971A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #971A7E
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A7E#FFFFFF#000000##FFFFFF
##971A7E1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214881
Deuteranopia (green-blind)
#4D5B7B
Tritanopia (blue-blind)
#A0224C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #971a7e;
/* rgb */ color: rgb(151, 26, 126);
/* oklch */ color: oklch(47.0% 0.187 338.1);
Tailwind
colors: {
  custom: {
    50: '#ba68a3',
    500: '#971a7e',
    950: '#000000',
  },
}
SCSS
$custom: #971a7e;
$custom-light: #ba68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#971a7e",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 312,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47019,
    "c": 0.18715,
    "h": 338.1
  },
  "luminance": 0.08824
}

Semantic roles & 50–950 ramp

primary
#971A7E
secondary
#4BC263
accent
#ED5E3A
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #971A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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