#972EBA#972EBA

#972EBA is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.2% C 0.215 H 316.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#972EBA
RGBrgb(151, 46, 186)
HSLhsl(285, 60%, 45%)
HSVhsv(285, 75%, 73%)
CMYKcmyk(18.8%, 75.3%, 0%, 27.1%)
CIE-LABlab(41.34, 62.60, -52.91)
CIE-LCHlch(41.34, 81.97, 319.80°)
OKLaboklab(52.22% 0.1545 -0.1491)
OKLCHoklch(52.22% 0.215 316)
XYZxyz(22.6010, 12.0794, 47.5859)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EBA #51BA2E
analogous
#512EBA #972EBA #BA2E97
triadic
#972EBA #BA972E #2EBA97
tetradic
#972EBA #BA512E #51BA2E #2E97BA
square
#972EBA #BA512E #51BA2E #2E97BA
split-complementary
#972EBA #97BA2E #2EBA51
monochromatic
#471658 #6F2289 #972EBA #B351D4 #C982E0

Accessibility & contrast

On white

6.15
#972EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#972EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EBA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EBA#FFFFFF#000000##FFFFFF
##972EBA1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#2C64B7
Tritanopia (blue-blind)
#954D72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972eba;
/* rgb */ color: rgb(151, 46, 186);
/* oklch */ color: oklch(52.2% 0.215 316.0);
Tailwind
colors: {
  custom: {
    50: '#ba72cf',
    500: '#972eba',
    950: '#000000',
  },
}
SCSS
$custom: #972eba;
$custom-light: #ba72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#972eba",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 285,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52218,
    "c": 0.21468,
    "h": 316
  },
  "luminance": 0.12078
}

Semantic roles & 50–950 ramp

primary
#972EBA
secondary
#8EC97B
accent
#E3446C
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #972EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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