#972FA7#972FA7

#972FA7 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.1% C 0.197 H 322.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#972FA7
RGBrgb(151, 47, 167)
HSLhsl(292, 56%, 42%)
HSVhsv(292, 72%, 65%)
CMYKcmyk(9.6%, 71.9%, 0%, 34.5%)
CIE-LABlab(40.25, 58.62, -43.40)
CIE-LCHlch(40.25, 72.94, 323.48°)
OKLaboklab(51.05% 0.1553 -0.1213)
OKLCHoklch(51.05% 0.197 322)
XYZxyz(20.7533, 11.4035, 37.6597)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972FA7 #3FA72F
analogous
#5B2FA7 #972FA7 #A72F7B
triadic
#972FA7 #A7972F #2FA797
tetradic
#972FA7 #A75B2F #3FA72F #2F7BA7
square
#972FA7 #A75B2F #3FA72F #2F7BA7
split-complementary
#972FA7 #7BA72F #2FA75B
monochromatic
#411447 #6C2277 #972FA7 #BA48CB #CC78D9

Accessibility & contrast

On white

6.40
#972FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#972FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972FA7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972FA7#FFFFFF#000000##FFFFFF
##972FA71.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#3F63A4
Tritanopia (blue-blind)
#994568
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #972fa7;
/* rgb */ color: rgb(151, 47, 167);
/* oklch */ color: oklch(51.1% 0.197 322.0);
Tailwind
colors: {
  custom: {
    50: '#b972c2',
    500: '#972fa7',
    950: '#000000',
  },
}
SCSS
$custom: #972fa7;
$custom-light: #b972c2;
$custom-dark: #000000;
JSON
{
  "hex": "#972fa7",
  "rgb": {
    "r": 151,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 292,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51054,
    "c": 0.19701,
    "h": 322
  },
  "luminance": 0.11402
}

Semantic roles & 50–950 ramp

primary
#972FA7
secondary
#7CC171
accent
#DF485D
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #972FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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