#971AB4#971AB4

#971AB4 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.4% C 0.227 H 318.6°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#971AB4
RGBrgb(151, 26, 180)
HSLhsl(289, 75%, 40%)
HSVhsv(289, 86%, 71%)
CMYKcmyk(16.1%, 85.6%, 0%, 29.4%)
CIE-LABlab(38.92, 67.29, -53.27)
CIE-LCHlch(38.92, 85.83, 321.63°)
OKLaboklab(50.39% 0.1704 -0.15)
OKLCHoklch(50.39% 0.227 318.6)
XYZxyz(21.3690, 10.6145, 44.0944)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971AB4 #37B41A
analogous
#4A1AB4 #971AB4 #B41A84
triadic
#971AB4 #B4971A #1AB497
tetradic
#971AB4 #B44A1A #37B41A #1A84B4
square
#971AB4 #B44A1A #37B41A #1A84B4
split-complementary
#971AB4 #84B41A #1AB44A
monochromatic
#3D0B49 #6A127F #971AB4 #BE2BE0 #CF60E8

Accessibility & contrast

On white

6.73
#971AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#971AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971AB4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971AB4#FFFFFF#000000##FFFFFF
##971AB41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#255FB1
Tritanopia (blue-blind)
#96416B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #971ab4;
/* rgb */ color: rgb(151, 26, 180);
/* oklch */ color: oklch(50.4% 0.227 318.6);
Tailwind
colors: {
  custom: {
    50: '#ba6acb',
    500: '#971ab4',
    950: '#000000',
  },
}
SCSS
$custom: #971ab4;
$custom-light: #ba6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#971ab4",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 288.701,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50386,
    "c": 0.227,
    "h": 318.6
  },
  "luminance": 0.10613
}

Semantic roles & 50–950 ramp

primary
#971AB4
secondary
#72CC5D
accent
#F1365A
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #971AB4

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

Preview Lab → · Contrast checker → · Palette generator →

#971AB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva