#972DB8#972DB8

#972DB8 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.214 H 316.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#972DB8
RGBrgb(151, 45, 184)
HSLhsl(286, 61%, 45%)
HSVhsv(286, 76%, 72%)
CMYKcmyk(17.9%, 75.5%, 0%, 27.8%)
CIE-LABlab(41.09, 62.56, -52.15)
CIE-LCHlch(41.09, 81.45, 320.19°)
OKLaboklab(51.99% 0.1556 -0.1469)
OKLCHoklch(51.99% 0.214 316.7)
XYZxyz(22.3513, 11.9177, 46.4611)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972DB8 #4EB82D
analogous
#512DB8 #972DB8 #B82D94
triadic
#972DB8 #B8972D #2DB897
tetradic
#972DB8 #B8512D #4EB82D #2D94B8
square
#972DB8 #B8512D #4EB82D #2D94B8
split-complementary
#972DB8 #94B82D #2DB851
monochromatic
#461556 #6F2187 #972DB8 #B44ED4 #C980E0

Accessibility & contrast

On white

6.21
#972DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#972DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972DB8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972DB8#FFFFFF#000000##FFFFFF
##972DB81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#2E64B5
Tritanopia (blue-blind)
#954B71
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972db8;
/* rgb */ color: rgb(151, 45, 184);
/* oklch */ color: oklch(52.0% 0.214 316.7);
Tailwind
colors: {
  custom: {
    50: '#ba71ce',
    500: '#972db8',
    950: '#000000',
  },
}
SCSS
$custom: #972db8;
$custom-light: #ba71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#972db8",
  "rgb": {
    "r": 151,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 285.755,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51994,
    "c": 0.21397,
    "h": 316.7
  },
  "luminance": 0.11917
}

Semantic roles & 50–950 ramp

primary
#972DB8
secondary
#8BC978
accent
#E4446A
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #972DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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