#972EC3#972EC3

#972EC3 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.223 H 313.4°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#972EC3
RGBrgb(151, 46, 195)
HSLhsl(282, 62%, 47%)
HSVhsv(282, 76%, 76%)
CMYKcmyk(22.6%, 76.4%, 0%, 23.5%)
CIE-LABlab(41.96, 64.38, -57.18)
CIE-LCHlch(41.96, 86.11, 318.39°)
OKLaboklab(52.85% 0.1531 -0.1616)
OKLCHoklch(52.85% 0.223 313.4)
XYZxyz(23.5881, 12.4742, 52.7844)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EC3 #5AC32E
analogous
#4D2EC3 #972EC3 #C32EA5
triadic
#972EC3 #C3972E #2EC397
tetradic
#972EC3 #C34D2E #5AC32E #2EA5C3
square
#972EC3 #C34D2E #5AC32E #2EA5C3
split-complementary
#972EC3 #A5C32E #2EC34D
monochromatic
#4A1760 #712291 #972EC3 #B157D7 #C888E3

Accessibility & contrast

On white

6.01
#972EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#972EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EC3
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EC3#FFFFFF#000000##FFFFFF
##972EC31.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC7
Deuteranopia (green-blind)
#1E65C0
Tritanopia (blue-blind)
#925178
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #972ec3;
/* rgb */ color: rgb(151, 46, 195);
/* oklch */ color: oklch(52.9% 0.223 313.4);
Tailwind
colors: {
  custom: {
    50: '#ba72d6',
    500: '#972ec3',
    950: '#000000',
  },
}
SCSS
$custom: #972ec3;
$custom-light: #ba72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#972ec3",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 282.282,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52851,
    "c": 0.22262,
    "h": 313.4
  },
  "luminance": 0.12473
}

Semantic roles & 50–950 ramp

primary
#972EC3
secondary
#97CD80
accent
#E54373
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #972EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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