#972AA2#972AA2

#972AA2 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.3% C 0.198 H 323.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#972AA2
RGBrgb(151, 42, 162)
HSLhsl(295, 59%, 40%)
HSVhsv(295, 74%, 64%)
CMYKcmyk(6.8%, 74.1%, 0%, 36.5%)
CIE-LABlab(39.32, 59.51, -41.90)
CIE-LCHlch(39.32, 72.78, 324.85°)
OKLaboklab(50.29% 0.1604 -0.1168)
OKLCHoklch(50.29% 0.198 323.9)
XYZxyz(20.1115, 10.8451, 35.2094)
Luminance0.1084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972AA2 #35A22A
analogous
#5B2AA2 #972AA2 #A22A71
triadic
#972AA2 #A2972A #2AA297
tetradic
#972AA2 #A25B2A #35A22A #2A71A2
square
#972AA2 #A25B2A #35A22A #2A71A2
split-complementary
#972AA2 #71A22A #2AA25B
monochromatic
#3C1141 #6A1D71 #972AA2 #BF3DCD #CF6DD9

Accessibility & contrast

On white

6.63
#972AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#972AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972AA2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972AA2#FFFFFF#000000##FFFFFF
##972AA21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#40619F
Tritanopia (blue-blind)
#9A4064
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #972aa2;
/* rgb */ color: rgb(151, 42, 162);
/* oklch */ color: oklch(50.3% 0.198 323.9);
Tailwind
colors: {
  custom: {
    50: '#b96fbe',
    500: '#972aa2',
    950: '#000000',
  },
}
SCSS
$custom: #972aa2;
$custom-light: #b96fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#972aa2",
  "rgb": {
    "r": 151,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 294.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.50291,
    "c": 0.19844,
    "h": 323.9
  },
  "luminance": 0.10844
}

Semantic roles & 50–950 ramp

primary
#972AA2
secondary
#70C068
accent
#E24654
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #972AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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