#972ED3#972ED3

#972ED3 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 54.0% C 0.237 H 309.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#972ED3
RGBrgb(151, 46, 211)
HSLhsl(278, 65%, 50%)
HSVhsv(278, 78%, 83%)
CMYKcmyk(28.4%, 78.2%, 0%, 17.3%)
CIE-LABlab(43.12, 67.64, -64.58)
CIE-LCHlch(43.12, 93.52, 316.33°)
OKLaboklab(54.03% 0.1499 -0.1834)
OKLCHoklch(54.03% 0.237 309.3)
XYZxyz(25.4950, 13.2369, 62.8273)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972ED3 #6AD32E
analogous
#452ED3 #972ED3 #D32EBC
triadic
#972ED3 #D3972E #2ED397
tetradic
#972ED3 #D3452E #6AD32E #2EBCD3
square
#972ED3 #D3452E #6AD32E #2EBCD3
split-complementary
#972ED3 #BCD32E #2ED345
monochromatic
#4F176F #7322A2 #972ED3 #B061DE #C993E8

Accessibility & contrast

On white

5.76
#972ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#972ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972ED3
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972ED3#FFFFFF#000000##FFFFFF
##972ED31.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#8E5881
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #972ed3;
/* rgb */ color: rgb(151, 46, 211);
/* oklch */ color: oklch(54.0% 0.237 309.3);
Tailwind
colors: {
  custom: {
    50: '#bb73e1',
    500: '#972ed3',
    950: '#000000',
  },
}
SCSS
$custom: #972ed3;
$custom-light: #bb73e1;
$custom-dark: #000000;
JSON
{
  "hex": "#972ed3",
  "rgb": {
    "r": 151,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 278.182,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54028,
    "c": 0.23685,
    "h": 309.3
  },
  "luminance": 0.13236
}

Semantic roles & 50–950 ramp

primary
#972ED3
secondary
#A4D38A
accent
#E8407D
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #972ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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