#972EC2#972EC2

#972EC2 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.222 H 313.7°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#972EC2
RGBrgb(151, 46, 194)
HSLhsl(283, 62%, 47%)
HSVhsv(283, 76%, 76%)
CMYKcmyk(22.2%, 76.3%, 0%, 23.9%)
CIE-LABlab(41.89, 64.18, -56.71)
CIE-LCHlch(41.89, 85.65, 318.54°)
OKLaboklab(52.78% 0.1532 -0.1603)
OKLCHoklch(52.78% 0.222 313.7)
XYZxyz(23.4754, 12.4291, 52.1909)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972EC2 #59C22E
analogous
#4D2EC2 #972EC2 #C22EA3
triadic
#972EC2 #C2972E #2EC297
tetradic
#972EC2 #C24D2E #59C22E #2EA3C2
square
#972EC2 #C24D2E #59C22E #2EA3C2
split-complementary
#972EC2 #A3C22E #2EC24D
monochromatic
#4A175F #702291 #972EC2 #B256D7 #C888E3

Accessibility & contrast

On white

6.02
#972EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#972EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972EC2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972EC2#FFFFFF#000000##FFFFFF
##972EC21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #972ec2;
/* rgb */ color: rgb(151, 46, 194);
/* oklch */ color: oklch(52.8% 0.222 313.7);
Tailwind
colors: {
  custom: {
    50: '#ba72d5',
    500: '#972ec2',
    950: '#000000',
  },
}
SCSS
$custom: #972ec2;
$custom-light: #ba72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#972ec2",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 282.568,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52779,
    "c": 0.22173,
    "h": 313.7
  },
  "luminance": 0.12428
}

Semantic roles & 50–950 ramp

primary
#972EC2
secondary
#96CC7F
accent
#E54372
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #972EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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