#972EB2#972EB2

#972EB2 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.208 H 318.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#972EB2
RGBrgb(151, 46, 178)
HSLhsl(288, 59%, 44%)
HSVhsv(288, 74%, 70%)
CMYKcmyk(15.2%, 74.2%, 0%, 30.2%)
CIE-LABlab(40.81, 61.05, -49.04)
CIE-LCHlch(40.81, 78.31, 321.23°)
OKLaboklab(51.68% 0.1554 -0.1378)
OKLCHoklch(51.68% 0.208 318.4)
XYZxyz(21.7743, 11.7487, 43.2316)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EB2 #49B22E
analogous
#552EB2 #972EB2 #B22E8B
triadic
#972EB2 #B2972E #2EB297
tetradic
#972EB2 #B2552E #49B22E #2E8BB2
square
#972EB2 #B2552E #49B22E #2E8BB2
split-complementary
#972EB2 #8BB22E #2EB255
monochromatic
#441551 #6E2181 #972EB2 #B64CD1 #CA7DDD

Accessibility & contrast

On white

6.27
#972EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#972EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EB2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EB2#FFFFFF#000000##FFFFFF
##972EB21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#3564AF
Tritanopia (blue-blind)
#96496E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #972eb2;
/* rgb */ color: rgb(151, 46, 178);
/* oklch */ color: oklch(51.7% 0.208 318.4);
Tailwind
colors: {
  custom: {
    50: '#ba72ca',
    500: '#972eb2',
    950: '#000000',
  },
}
SCSS
$custom: #972eb2;
$custom-light: #ba72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#972eb2",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 287.727,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51676,
    "c": 0.20767,
    "h": 318.4
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#972EB2
secondary
#86C676
accent
#E24666
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #972EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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