#972EA4#972EA4

#972EA4 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.8% C 0.196 H 323.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#972EA4
RGBrgb(151, 46, 164)
HSLhsl(293, 56%, 41%)
HSVhsv(293, 72%, 64%)
CMYKcmyk(7.9%, 72%, 0%, 35.7%)
CIE-LABlab(39.94, 58.44, -42.11)
CIE-LCHlch(39.94, 72.03, 324.23°)
OKLaboklab(50.77% 0.1564 -0.1175)
OKLCHoklch(50.77% 0.196 323.1)
XYZxyz(20.4397, 11.2148, 36.2028)
Luminance0.1121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EA4 #3BA42E
analogous
#5C2EA4 #972EA4 #A42E76
triadic
#972EA4 #A4972E #2EA497
tetradic
#972EA4 #A45C2E #3BA42E #2E76A4
square
#972EA4 #A45C2E #3BA42E #2E76A4
split-complementary
#972EA4 #76A42E #2EA45C
monochromatic
#3F1344 #6B2174 #972EA4 #BC45CB #CD74D8

Accessibility & contrast

On white

6.48
#972EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#972EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EA4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EA4#FFFFFF#000000##FFFFFF
##972EA41.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#4162A1
Tritanopia (blue-blind)
#994366
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #972ea4;
/* rgb */ color: rgb(151, 46, 164);
/* oklch */ color: oklch(50.8% 0.196 323.1);
Tailwind
colors: {
  custom: {
    50: '#b971bf',
    500: '#972ea4',
    950: '#000000',
  },
}
SCSS
$custom: #972ea4;
$custom-light: #b971bf;
$custom-dark: #000000;
JSON
{
  "hex": "#972ea4",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 293.39,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50773,
    "c": 0.19561,
    "h": 323.1
  },
  "luminance": 0.11214
}

Semantic roles & 50–950 ramp

primary
#972EA4
secondary
#77C06E
accent
#DF4859
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #972EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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