#972BAB#972BAB

#972BAB is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.0% C 0.205 H 320.8°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#972BAB
RGBrgb(151, 43, 171)
HSLhsl(291, 60%, 42%)
HSVhsv(291, 75%, 67%)
CMYKcmyk(11.7%, 74.9%, 0%, 32.9%)
CIE-LABlab(40.00, 60.80, -46.20)
CIE-LCHlch(40.00, 76.36, 322.77°)
OKLaboklab(50.95% 0.1589 -0.1294)
OKLCHoklch(50.95% 0.205 320.8)
XYZxyz(20.9762, 11.2485, 39.5865)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972BAB #3FAB2B
analogous
#572BAB #972BAB #AB2B7F
triadic
#972BAB #AB972B #2BAB97
tetradic
#972BAB #AB572B #3FAB2B #2B7FAB
square
#972BAB #AB572B #3FAB2B #2B7FAB
split-complementary
#972BAB #7FAB2B #2BAB57
monochromatic
#411249 #6C1F7A #972BAB #BA43D0 #CC74DC

Accessibility & contrast

On white

6.46
#972BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#972BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972BAB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972BAB#FFFFFF#000000##FFFFFF
##972BAB1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#3A62A8
Tritanopia (blue-blind)
#984469
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #972bab;
/* rgb */ color: rgb(151, 43, 171);
/* oklch */ color: oklch(51.0% 0.205 320.8);
Tailwind
colors: {
  custom: {
    50: '#b970c5',
    500: '#972bab',
    950: '#000000',
  },
}
SCSS
$custom: #972bab;
$custom-light: #b970c5;
$custom-dark: #000000;
JSON
{
  "hex": "#972bab",
  "rgb": {
    "r": 151,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 290.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50951,
    "c": 0.2049,
    "h": 320.8
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

primary
#972BAB
secondary
#7CC46E
accent
#E3455E
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #972BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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