#971D9D#971D9D

#971D9D is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.207 H 326.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#971D9D
RGBrgb(151, 29, 157)
HSLhsl(297, 69%, 36%)
HSVhsv(297, 82%, 62%)
CMYKcmyk(3.8%, 81.5%, 0%, 38.4%)
CIE-LABlab(37.65, 62.57, -41.55)
CIE-LCHlch(37.65, 75.11, 326.41°)
OKLaboklab(49.01% 0.1716 -0.1157)
OKLCHoklch(49.01% 0.207 326)
XYZxyz(19.2873, 9.8937, 32.7856)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971D9D #239D1D
analogous
#571D9D #971D9D #9D1D63
triadic
#971D9D #9D971D #1D9D97
tetradic
#971D9D #9D571D #239D1D #1D639D
square
#971D9D #9D571D #239D1D #1D639D
split-complementary
#971D9D #639D1D #1D9D57
monochromatic
#340A36 #651369 #971D9D #C927D1 #D955E0

Accessibility & contrast

On white

7.05
#971D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#971D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971D9D
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971D9D#FFFFFF#000000##FFFFFF
##971D9D1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#3D5E9A
Tritanopia (blue-blind)
#9B365E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #971d9d;
/* rgb */ color: rgb(151, 29, 157);
/* oklch */ color: oklch(49.0% 0.207 326.0);
Tailwind
colors: {
  custom: {
    50: '#ba6aba',
    500: '#971d9d',
    950: '#000000',
  },
}
SCSS
$custom: #971d9d;
$custom-light: #ba6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#971d9d",
  "rgb": {
    "r": 151,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 297.188,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49008,
    "c": 0.20694,
    "h": 326
  },
  "luminance": 0.09892
}

Semantic roles & 50–950 ramp

primary
#971D9D
secondary
#58C353
accent
#EC3C44
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #971D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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