#971B8A#971B8A

#971B8A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.195 H 333.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#971B8A
RGBrgb(151, 27, 138)
HSLhsl(306, 70%, 35%)
HSVhsv(306, 82%, 59%)
CMYKcmyk(0%, 82.1%, 8.6%, 40.8%)
CIE-LABlab(36.37, 60.04, -31.99)
CIE-LCHlch(36.37, 68.03, 331.95°)
OKLaboklab(47.74% 0.1736 -0.0879)
OKLCHoklch(47.74% 0.195 333.1)
XYZxyz(17.7420, 9.1997, 24.8811)
Luminance0.0920 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971B8A #1B9728
analogous
#661B97 #971B8A #971B4C
triadic
#971B8A #8A971B #1B8A97
tetradic
#971B8A #97661B #1B9728 #1B4C97
square
#971B8A #97661B #1B9728 #1B4C97
split-complementary
#971B8A #4C971B #1B9766
monochromatic
#2F082B #63125B #971B8A #CB24B9 #DF4DD0

Accessibility & contrast

On white

7.40
#971B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#971B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971B8A
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971B8A#FFFFFF#000000##FFFFFF
##971B8A1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#485C87
Tritanopia (blue-blind)
#9E2A53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971b8a;
/* rgb */ color: rgb(151, 27, 138);
/* oklch */ color: oklch(47.7% 0.195 333.1);
Tailwind
colors: {
  custom: {
    50: '#b969ac',
    500: '#971b8a',
    950: '#000000',
  },
}
SCSS
$custom: #971b8a;
$custom-light: #b969ac;
$custom-dark: #000000;
JSON
{
  "hex": "#971b8a",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 306.29,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47738,
    "c": 0.19457,
    "h": 333.1
  },
  "luminance": 0.09198
}

Semantic roles & 50–950 ramp

primary
#971B8A
secondary
#4CC159
accent
#EC4E3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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