#971FB4#971FB4

#971FB4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.7% C 0.223 H 318.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#971FB4
RGBrgb(151, 31, 180)
HSLhsl(288, 71%, 41%)
HSVhsv(288, 83%, 71%)
CMYKcmyk(16.1%, 82.8%, 0%, 29.4%)
CIE-LABlab(39.34, 66.08, -52.61)
CIE-LCHlch(39.34, 84.47, 321.48°)
OKLaboklab(50.68% 0.1672 -0.1481)
OKLCHoklch(50.68% 0.223 318.5)
XYZxyz(21.4896, 10.8556, 44.1346)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971FB4 #3CB41F
analogous
#4D1FB4 #971FB4 #B41F87
triadic
#971FB4 #B4971F #1FB497
tetradic
#971FB4 #B44D1F #3CB41F #1F87B4
square
#971FB4 #B44D1F #3CB41F #1F87B4
split-complementary
#971FB4 #87B41F #1FB44D
monochromatic
#3F0D4C #6B1680 #971FB4 #BB34DC #CD68E5

Accessibility & contrast

On white

6.62
#971FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#971FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971FB4
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971FB4#FFFFFF#000000##FFFFFF
##971FB41.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#2860B1
Tritanopia (blue-blind)
#96436C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #971fb4;
/* rgb */ color: rgb(151, 31, 180);
/* oklch */ color: oklch(50.7% 0.223 318.5);
Tailwind
colors: {
  custom: {
    50: '#ba6ccb',
    500: '#971fb4',
    950: '#000000',
  },
}
SCSS
$custom: #971fb4;
$custom-light: #ba6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#971fb4",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 288.322,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50675,
    "c": 0.22338,
    "h": 318.5
  },
  "luminance": 0.10855
}

Semantic roles & 50–950 ramp

primary
#971FB4
secondary
#78CB64
accent
#ED3A5D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #971FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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