#972EA1#972EA1

#972EA1 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.193 H 324.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#972EA1
RGBrgb(151, 46, 161)
HSLhsl(295, 56%, 41%)
HSVhsv(295, 71%, 63%)
CMYKcmyk(6.2%, 71.4%, 0%, 36.9%)
CIE-LABlab(39.76, 57.89, -40.59)
CIE-LCHlch(39.76, 70.71, 324.96°)
OKLaboklab(50.59% 0.1565 -0.113)
OKLCHoklch(50.59% 0.193 324.2)
XYZxyz(20.1720, 11.1077, 34.7928)
Luminance0.1111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EA1 #38A12E
analogous
#5E2EA1 #972EA1 #A12E71
triadic
#972EA1 #A1972E #2EA197
tetradic
#972EA1 #A15E2E #38A12E #2E71A1
square
#972EA1 #A15E2E #38A12E #2E71A1
split-complementary
#972EA1 #71A12E #2EA15E
monochromatic
#3E1342 #6A2071 #972EA1 #BE43C9 #CE73D7

Accessibility & contrast

On white

6.52
#972EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#972EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EA1
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EA1#FFFFFF#000000##FFFFFF
##972EA11.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0956A4
Deuteranopia (green-blind)
#43629E
Tritanopia (blue-blind)
#9A4264
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #972ea1;
/* rgb */ color: rgb(151, 46, 161);
/* oklch */ color: oklch(50.6% 0.193 324.2);
Tailwind
colors: {
  custom: {
    50: '#b971bd',
    500: '#972ea1',
    950: '#000000',
  },
}
SCSS
$custom: #972ea1;
$custom-light: #b971bd;
$custom-dark: #000000;
JSON
{
  "hex": "#972ea1",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 294.783,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50588,
    "c": 0.19307,
    "h": 324.2
  },
  "luminance": 0.11107
}

Semantic roles & 50–950 ramp

primary
#972EA1
secondary
#73BE6C
accent
#DF4956
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #972EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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