#972EB4#972EB4

#972EB4 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.209 H 317.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#972EB4
RGBrgb(151, 46, 180)
HSLhsl(287, 59%, 44%)
HSVhsv(287, 74%, 71%)
CMYKcmyk(16.1%, 74.4%, 0%, 29.4%)
CIE-LABlab(40.94, 61.44, -50.02)
CIE-LCHlch(40.94, 79.22, 320.85°)
OKLaboklab(51.81% 0.1552 -0.1406)
OKLCHoklch(51.81% 0.209 317.8)
XYZxyz(21.9765, 11.8296, 44.2969)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EB4 #4BB42E
analogous
#542EB4 #972EB4 #B42E8E
triadic
#972EB4 #B4972E #2EB497
tetradic
#972EB4 #B4542E #4BB42E #2E8EB4
square
#972EB4 #B4542E #4BB42E #2E8EB4
split-complementary
#972EB4 #8EB42E #2EB454
monochromatic
#451553 #6E2283 #972EB4 #B54ED2 #C97EDE

Accessibility & contrast

On white

6.24
#972EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#972EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EB4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EB4#FFFFFF#000000##FFFFFF
##972EB41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#3364B1
Tritanopia (blue-blind)
#964A6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972eb4;
/* rgb */ color: rgb(151, 46, 180);
/* oklch */ color: oklch(51.8% 0.209 317.8);
Tailwind
colors: {
  custom: {
    50: '#ba72cb',
    500: '#972eb4',
    950: '#000000',
  },
}
SCSS
$custom: #972eb4;
$custom-light: #ba72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#972eb4",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 287.015,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.20942,
    "h": 317.8
  },
  "luminance": 0.11829
}

Semantic roles & 50–950 ramp

primary
#972EB4
secondary
#88C777
accent
#E24567
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #972EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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