#972DC2#972DC2

#972DC2 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.7% C 0.223 H 313.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#972DC2
RGBrgb(151, 45, 194)
HSLhsl(283, 62%, 47%)
HSVhsv(283, 77%, 76%)
CMYKcmyk(22.2%, 76.8%, 0%, 23.9%)
CIE-LABlab(41.77, 64.53, -56.91)
CIE-LCHlch(41.77, 86.04, 318.59°)
OKLaboklab(52.69% 0.1541 -0.1608)
OKLCHoklch(52.69% 0.223 313.8)
XYZxyz(23.4368, 12.3519, 52.1781)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972DC2 #58C22D
analogous
#4D2DC2 #972DC2 #C22DA2
triadic
#972DC2 #C2972D #2DC297
tetradic
#972DC2 #C24D2D #58C22D #2DA2C2
square
#972DC2 #C24D2D #58C22D #2DA2C2
split-complementary
#972DC2 #A2C22D #2DC24D
monochromatic
#4A165F #702190 #972DC2 #B255D7 #C886E3

Accessibility & contrast

On white

6.05
#972DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#972DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972DC2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972DC2#FFFFFF#000000##FFFFFF
##972DC21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#1E65BF
Tritanopia (blue-blind)
#935077
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #972dc2;
/* rgb */ color: rgb(151, 45, 194);
/* oklch */ color: oklch(52.7% 0.223 313.8);
Tailwind
colors: {
  custom: {
    50: '#ba72d5',
    500: '#972dc2',
    950: '#000000',
  },
}
SCSS
$custom: #972dc2;
$custom-light: #ba72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#972dc2",
  "rgb": {
    "r": 151,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 282.685,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52694,
    "c": 0.22273,
    "h": 313.8
  },
  "luminance": 0.12351
}

Semantic roles & 50–950 ramp

primary
#972DC2
secondary
#95CD7E
accent
#E54271
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #972DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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