#972EB8#972EB8

#972EB8 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.213 H 316.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#972EB8
RGBrgb(151, 46, 184)
HSLhsl(286, 60%, 45%)
HSVhsv(286, 75%, 72%)
CMYKcmyk(17.9%, 75%, 0%, 27.8%)
CIE-LABlab(41.21, 62.21, -51.95)
CIE-LCHlch(41.21, 81.05, 320.14°)
OKLaboklab(52.08% 0.1547 -0.1463)
OKLCHoklch(52.08% 0.213 316.6)
XYZxyz(22.3899, 11.9949, 46.4740)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EB8 #4FB82E
analogous
#522EB8 #972EB8 #B82E94
triadic
#972EB8 #B8972E #2EB897
tetradic
#972EB8 #B8522E #4FB82E #2E94B8
square
#972EB8 #B8522E #4FB82E #2E94B8
split-complementary
#972EB8 #94B82E #2EB852
monochromatic
#471656 #6F2287 #972EB8 #B450D3 #C981DF

Accessibility & contrast

On white

6.18
#972EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#972EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EB8
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EB8#FFFFFF#000000##FFFFFF
##972EB81.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#954C71
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972eb8;
/* rgb */ color: rgb(151, 46, 184);
/* oklch */ color: oklch(52.1% 0.213 316.6);
Tailwind
colors: {
  custom: {
    50: '#ba72ce',
    500: '#972eb8',
    950: '#000000',
  },
}
SCSS
$custom: #972eb8;
$custom-light: #ba72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#972eb8",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 285.652,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52081,
    "c": 0.21292,
    "h": 316.6
  },
  "luminance": 0.11994
}

Semantic roles & 50–950 ramp

primary
#972EB8
secondary
#8CC879
accent
#E3456B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #972EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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