#971F87#971F87

#971F87 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.189 H 334.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#971F87
RGBrgb(151, 31, 135)
HSLhsl(308, 66%, 36%)
HSVhsv(308, 79%, 59%)
CMYKcmyk(0%, 79.5%, 10.6%, 40.8%)
CIE-LABlab(36.57, 58.51, -29.81)
CIE-LCHlch(36.57, 65.67, 333.01°)
OKLaboklab(47.84% 0.1703 -0.0817)
OKLCHoklch(47.84% 0.189 334.4)
XYZxyz(17.6259, 9.3101, 23.7857)
Luminance0.0931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F87 #1F972F
analogous
#6B1F97 #971F87 #971F4B
triadic
#971F87 #87971F #1F8797
tetradic
#971F87 #976B1F #1F972F #1F4B97
square
#971F87 #976B1F #1F972F #1F4B97
split-complementary
#971F87 #4B971F #1F976B
monochromatic
#310A2C #64155A #971F87 #CA29B4 #DC54CA

Accessibility & contrast

On white

7.34
#971F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#971F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F87
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F87#FFFFFF#000000##FFFFFF
##971F871.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8A
Deuteranopia (green-blind)
#4B5C84
Tritanopia (blue-blind)
#9E2B52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971f87;
/* rgb */ color: rgb(151, 31, 135);
/* oklch */ color: oklch(47.8% 0.189 334.4);
Tailwind
colors: {
  custom: {
    50: '#b96aaa',
    500: '#971f87',
    950: '#000000',
  },
}
SCSS
$custom: #971f87;
$custom-light: #b96aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#971f87",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 308,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47835,
    "c": 0.18888,
    "h": 334.4
  },
  "luminance": 0.09309
}

Semantic roles & 50–950 ramp

primary
#971F87
secondary
#52BF61
accent
#E9563F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971F87

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

Preview Lab → · Contrast checker → · Palette generator →

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