#972EB5#972EB5

#972EB5 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.210 H 317.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#972EB5
RGBrgb(151, 46, 181)
HSLhsl(287, 59%, 45%)
HSVhsv(287, 75%, 71%)
CMYKcmyk(16.6%, 74.6%, 0%, 29%)
CIE-LABlab(41.01, 61.63, -50.50)
CIE-LCHlch(41.01, 79.68, 320.67°)
OKLaboklab(51.88% 0.1551 -0.142)
OKLCHoklch(51.88% 0.21 317.5)
XYZxyz(22.0788, 11.8705, 44.8353)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EB5 #4CB52E
analogous
#542EB5 #972EB5 #B52E8F
triadic
#972EB5 #B5972E #2EB597
tetradic
#972EB5 #B5542E #4CB52E #2E8FB5
square
#972EB5 #B5542E #4CB52E #2E8FB5
split-complementary
#972EB5 #8FB52E #2EB554
monochromatic
#461553 #6E2284 #972EB5 #B54ED2 #C97FDE

Accessibility & contrast

On white

6.22
#972EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#972EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EB5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EB5#FFFFFF#000000##FFFFFF
##972EB51.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#3264B2
Tritanopia (blue-blind)
#964A70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972eb5;
/* rgb */ color: rgb(151, 46, 181);
/* oklch */ color: oklch(51.9% 0.210 317.5);
Tailwind
colors: {
  custom: {
    50: '#ba72cc',
    500: '#972eb5',
    950: '#000000',
  },
}
SCSS
$custom: #972eb5;
$custom-light: #ba72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#972eb5",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 286.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51877,
    "c": 0.21029,
    "h": 317.5
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#972EB5
secondary
#89C778
accent
#E34568
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #972EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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