#972A8D#972A8D

#972A8D is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.1% C 0.182 H 332.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#972A8D
RGBrgb(151, 42, 141)
HSLhsl(306, 56%, 38%)
HSVhsv(306, 72%, 59%)
CMYKcmyk(0%, 72.2%, 6.6%, 40.8%)
CIE-LABlab(38.13, 55.92, -31.05)
CIE-LCHlch(38.13, 63.97, 330.96°)
OKLaboklab(49.05% 0.1603 -0.0853)
OKLCHoklch(49.05% 0.182 332)
XYZxyz(18.3982, 10.1598, 26.1862)
Luminance0.1016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972A8D #2A9734
analogous
#6B2A97 #972A8D #972A56
triadic
#972A8D #8D972A #2A8D97
tetradic
#972A8D #976B2A #2A9734 #2A5697
square
#972A8D #976B2A #2A9734 #2A5697
split-complementary
#972A8D #56972A #2A976B
monochromatic
#370F34 #671D60 #972A8D #C737BA #D567CB

Accessibility & contrast

On white

6.93
#972A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#972A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972A8D
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972A8D#FFFFFF#000000##FFFFFF
##972A8D1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235090
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#9D3658
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #972a8d;
/* rgb */ color: rgb(151, 42, 141);
/* oklch */ color: oklch(49.1% 0.182 332.0);
Tailwind
colors: {
  custom: {
    50: '#b96eaf',
    500: '#972a8d',
    950: '#000000',
  },
}
SCSS
$custom: #972a8d;
$custom-light: #b96eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#972a8d",
  "rgb": {
    "r": 151,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 305.505,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49053,
    "c": 0.18161,
    "h": 332
  },
  "luminance": 0.10158
}

Semantic roles & 50–950 ramp

primary
#972A8D
secondary
#62BB6A
accent
#E05648
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #972A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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