#972EB7#972EB7

#972EB7 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.212 H 316.9°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#972EB7
RGBrgb(151, 46, 183)
HSLhsl(286, 60%, 45%)
HSVhsv(286, 75%, 72%)
CMYKcmyk(17.5%, 74.9%, 0%, 28.2%)
CIE-LABlab(41.14, 62.02, -51.47)
CIE-LCHlch(41.14, 80.59, 320.31°)
OKLaboklab(52.01% 0.1548 -0.1449)
OKLCHoklch(52.01% 0.212 316.9)
XYZxyz(22.2855, 11.9531, 45.9239)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EB7 #4EB72E
analogous
#522EB7 #972EB7 #B72E93
triadic
#972EB7 #B7972E #2EB797
tetradic
#972EB7 #B7522E #4EB72E #2E93B7
square
#972EB7 #B7522E #4EB72E #2E93B7
split-complementary
#972EB7 #93B72E #2EB752
monochromatic
#461555 #6F2286 #972EB7 #B44FD3 #C980DF

Accessibility & contrast

On white

6.19
#972EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#972EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EB7
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EB7#FFFFFF#000000##FFFFFF
##972EB71.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#3064B4
Tritanopia (blue-blind)
#954B71
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972eb7;
/* rgb */ color: rgb(151, 46, 183);
/* oklch */ color: oklch(52.0% 0.212 316.9);
Tailwind
colors: {
  custom: {
    50: '#ba72cd',
    500: '#972eb7',
    950: '#000000',
  },
}
SCSS
$custom: #972eb7;
$custom-light: #ba72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#972eb7",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 285.985,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52013,
    "c": 0.21204,
    "h": 316.9
  },
  "luminance": 0.11952
}

Semantic roles & 50–950 ramp

primary
#972EB7
secondary
#8BC879
accent
#E3456A
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #972EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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