#971B8D#971B8D

#971B8D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.197 H 331.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#971B8D
RGBrgb(151, 27, 141)
HSLhsl(305, 70%, 35%)
HSVhsv(305, 82%, 59%)
CMYKcmyk(0%, 82.1%, 6.6%, 40.8%)
CIE-LABlab(36.53, 60.50, -33.57)
CIE-LCHlch(36.53, 69.19, 330.97°)
OKLaboklab(47.91% 0.1736 -0.0925)
OKLCHoklch(47.91% 0.197 331.9)
XYZxyz(17.9622, 9.2878, 26.0408)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971B8D #1B9725
analogous
#631B97 #971B8D #971B4F
triadic
#971B8D #8D971B #1B8D97
tetradic
#971B8D #97631B #1B9725 #1B4F97
square
#971B8D #97631B #1B9725 #1B4F97
split-complementary
#971B8D #4F971B #1B9763
monochromatic
#2F082C #63125D #971B8D #CB24BD #DF4DD3

Accessibility & contrast

On white

7.35
#971B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #971B8D
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971B8D#FFFFFF#000000##FFFFFF
##971B8D1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B90
Deuteranopia (green-blind)
#475C8A
Tritanopia (blue-blind)
#9E2C55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971b8d;
/* rgb */ color: rgb(151, 27, 141);
/* oklch */ color: oklch(47.9% 0.197 331.9);
Tailwind
colors: {
  custom: {
    50: '#b969af',
    500: '#971b8d',
    950: '#000000',
  },
}
SCSS
$custom: #971b8d;
$custom-light: #b969af;
$custom-dark: #000000;
JSON
{
  "hex": "#971b8d",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 304.839,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47911,
    "c": 0.19672,
    "h": 331.9
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#971B8D
secondary
#4CC156
accent
#EC4A3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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