#971D8B#971D8B

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

Color values

HEX#971D8B
RGBrgb(151, 29, 139)
HSLhsl(306, 68%, 35%)
HSVhsv(306, 81%, 59%)
CMYKcmyk(0%, 80.8%, 7.9%, 40.8%)
CIE-LABlab(36.60, 59.67, -32.23)
CIE-LCHlch(36.60, 67.82, 331.62°)
OKLaboklab(47.92% 0.1721 -0.0887)
OKLCHoklch(47.92% 0.194 332.7)
XYZxyz(17.8622, 9.3237, 25.2800)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971D8B #1D9729
analogous
#661D97 #971D8B #971D4E
triadic
#971D8B #8B971D #1D8B97
tetradic
#971D8B #97661D #1D9729 #1D4E97
square
#971D8B #97661D #1D9729 #1D4E97
split-complementary
#971D8B #4E971D #1D9766
monochromatic
#30092C #64135C #971D8B #CA27BA #DE51D0

Accessibility & contrast

On white

7.33
#971D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #971D8B
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971D8B#FFFFFF#000000##FFFFFF
##971D8B1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#485C88
Tritanopia (blue-blind)
#9E2C54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971d8b;
/* rgb */ color: rgb(151, 29, 139);
/* oklch */ color: oklch(47.9% 0.194 332.7);
Tailwind
colors: {
  custom: {
    50: '#b969ad',
    500: '#971d8b',
    950: '#000000',
  },
}
SCSS
$custom: #971d8b;
$custom-light: #b969ad;
$custom-dark: #000000;
JSON
{
  "hex": "#971d8b",
  "rgb": {
    "r": 151,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 305.902,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47923,
    "c": 0.19357,
    "h": 332.7
  },
  "luminance": 0.09322
}

Semantic roles & 50–950 ramp

primary
#971D8B
secondary
#4FC05B
accent
#EB4E3D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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