#972DBA#972DBA

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

Color values

HEX#972DBA
RGBrgb(151, 45, 186)
HSLhsl(285, 61%, 45%)
HSVhsv(285, 76%, 73%)
CMYKcmyk(18.8%, 75.8%, 0%, 27.1%)
CIE-LABlab(41.22, 62.95, -53.11)
CIE-LCHlch(41.22, 82.36, 319.85°)
OKLaboklab(52.13% 0.1553 -0.1497)
OKLCHoklch(52.13% 0.216 316.1)
XYZxyz(22.5624, 12.0022, 47.5730)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972DBA #50BA2D
analogous
#502DBA #972DBA #BA2D97
triadic
#972DBA #BA972D #2DBA97
tetradic
#972DBA #BA502D #50BA2D #2D97BA
square
#972DBA #BA502D #50BA2D #2D97BA
split-complementary
#972DBA #97BA2D #2DBA50
monochromatic
#471557 #6F2189 #972DBA #B450D5 #C981E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##972DBA#FFFFFF#000000##FFFFFF
##972DBA1.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)
#005BBE
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#954C72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #972dba;
/* rgb */ color: rgb(151, 45, 186);
/* oklch */ color: oklch(52.1% 0.216 316.1);
Tailwind
colors: {
  custom: {
    50: '#ba71cf',
    500: '#972dba',
    950: '#000000',
  },
}
SCSS
$custom: #972dba;
$custom-light: #ba71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#972dba",
  "rgb": {
    "r": 151,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 285.106,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52132,
    "c": 0.21571,
    "h": 316.1
  },
  "luminance": 0.12001
}

Semantic roles & 50–950 ramp

primary
#972DBA
secondary
#8DC979
accent
#E4446B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #972DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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