#972D8A#972D8A

#972D8A is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.176 H 333.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#972D8A
RGBrgb(151, 45, 138)
HSLhsl(307, 54%, 38%)
HSVhsv(307, 70%, 59%)
CMYKcmyk(0%, 70.2%, 8.6%, 40.8%)
CIE-LABlab(38.36, 54.34, -28.84)
CIE-LCHlch(38.36, 61.52, 332.04°)
OKLaboklab(49.17% 0.1569 -0.079)
OKLCHoklch(49.17% 0.176 333.3)
XYZxyz(18.2884, 10.2926, 25.0633)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972D8A #2D973A
analogous
#6F2D97 #972D8A #972D55
triadic
#972D8A #8A972D #2D8A97
tetradic
#972D8A #976F2D #2D973A #2D5597
square
#972D8A #976F2D #2D973A #2D5597
split-complementary
#972D8A #55972D #2D976F
monochromatic
#391134 #681F5F #972D8A #C53CB4 #D36BC6

Accessibility & contrast

On white

6.87
#972D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#972D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972D8A
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972D8A#FFFFFF#000000##FFFFFF
##972D8A1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#4F6087
Tritanopia (blue-blind)
#9E3758
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #972d8a;
/* rgb */ color: rgb(151, 45, 138);
/* oklch */ color: oklch(49.2% 0.176 333.3);
Tailwind
colors: {
  custom: {
    50: '#b970ac',
    500: '#972d8a',
    950: '#000000',
  },
}
SCSS
$custom: #972d8a;
$custom-light: #b970ac;
$custom-dark: #000000;
JSON
{
  "hex": "#972d8a",
  "rgb": {
    "r": 151,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 307.358,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49172,
    "c": 0.17564,
    "h": 333.3
  },
  "luminance": 0.10291
}

Semantic roles & 50–950 ramp

primary
#972D8A
secondary
#66BA70
accent
#DD5C4A
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #972D8A

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

Preview Lab → · Contrast checker → · Palette generator →

#972D8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva