#971A7B#971A7B

#971A7B is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.9% C 0.185 H 339.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#971A7B
RGBrgb(151, 26, 123)
HSLhsl(313, 71%, 35%)
HSVhsv(313, 83%, 59%)
CMYKcmyk(0%, 82.8%, 18.5%, 40.8%)
CIE-LABlab(35.50, 58.11, -24.03)
CIE-LCHlch(35.50, 62.88, 337.54°)
OKLaboklab(46.86% 0.1734 -0.0651)
OKLCHoklch(46.86% 0.185 339.4)
XYZxyz(16.7075, 8.7499, 19.5441)
Luminance0.0875 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A7B #1A9736
analogous
#751A97 #971A7B #971A3D
triadic
#971A7B #7B971A #1A7B97
tetradic
#971A7B #97751A #1A9736 #1A3D97
square
#971A7B #97751A #1A9736 #1A3D97
split-complementary
#971A7B #3D971A #1A9775
monochromatic
#2F0826 #631150 #971A7B #CB23A6 #E04BBF

Accessibility & contrast

On white

7.64
#971A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#971A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971A7B
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A7B#FFFFFF#000000##FFFFFF
##971A7B1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#4F5A78
Tritanopia (blue-blind)
#A0204A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #971a7b;
/* rgb */ color: rgb(151, 26, 123);
/* oklch */ color: oklch(46.9% 0.185 339.4);
Tailwind
colors: {
  custom: {
    50: '#ba68a1',
    500: '#971a7b',
    950: '#000000',
  },
}
SCSS
$custom: #971a7b;
$custom-light: #ba68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#971a7b",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 313.44,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46864,
    "c": 0.18518,
    "h": 339.4
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#971A7B
secondary
#4BC265
accent
#ED633A
background
#FBF6F9
surface
#F7EBF2
border
#D0C6CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #971A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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