#972DC8#972DC8

#972DC8 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.1% C 0.228 H 312.1°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#972DC8
RGBrgb(151, 45, 200)
HSLhsl(281, 63%, 48%)
HSVhsv(281, 78%, 78%)
CMYKcmyk(24.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(42.20, 65.73, -59.71)
CIE-LCHlch(42.20, 88.80, 317.75°)
OKLaboklab(53.13% 0.153 -0.1691)
OKLCHoklch(53.13% 0.228 312.1)
XYZxyz(24.1243, 12.6269, 55.7988)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972DC8 #5EC82D
analogous
#492DC8 #972DC8 #C82DAB
triadic
#972DC8 #C8972D #2DC897
tetradic
#972DC8 #C8492D #5EC82D #2DABC8
square
#972DC8 #C8492D #5EC82D #2DABC8
split-complementary
#972DC8 #ABC82D #2DC849
monochromatic
#4C1764 #712296 #972DC8 #B159DA #C88BE5

Accessibility & contrast

On white

5.96
#972DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#972DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972DC8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972DC8#FFFFFF#000000##FFFFFF
##972DC81.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0F66C5
Tritanopia (blue-blind)
#91527A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #972dc8;
/* rgb */ color: rgb(151, 45, 200);
/* oklch */ color: oklch(53.1% 0.228 312.1);
Tailwind
colors: {
  custom: {
    50: '#bb72da',
    500: '#972dc8',
    950: '#000000',
  },
}
SCSS
$custom: #972dc8;
$custom-light: #bb72da;
$custom-dark: #000000;
JSON
{
  "hex": "#972dc8",
  "rgb": {
    "r": 151,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 281.032,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53128,
    "c": 0.22801,
    "h": 312.1
  },
  "luminance": 0.12626
}

Semantic roles & 50–950 ramp

primary
#972DC8
secondary
#9ACF82
accent
#E64176
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #972DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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