#971EB4#971EB4

#971EB4 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.6% C 0.224 H 318.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#971EB4
RGBrgb(151, 30, 180)
HSLhsl(288, 71%, 41%)
HSVhsv(288, 83%, 71%)
CMYKcmyk(16.1%, 83.3%, 0%, 29.4%)
CIE-LABlab(39.25, 66.34, -52.75)
CIE-LCHlch(39.25, 84.75, 321.51°)
OKLaboklab(50.61% 0.1679 -0.1485)
OKLCHoklch(50.61% 0.224 318.5)
XYZxyz(21.4639, 10.8042, 44.1260)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971EB4 #3BB41E
analogous
#4C1EB4 #971EB4 #B41E86
triadic
#971EB4 #B4971E #1EB497
tetradic
#971EB4 #B44C1E #3BB41E #1E86B4
square
#971EB4 #B44C1E #3BB41E #1E86B4
split-complementary
#971EB4 #86B41E #1EB44C
monochromatic
#3F0D4B #6B1580 #971EB4 #BC32DD #CD67E6

Accessibility & contrast

On white

6.64
#971EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#971EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971EB4
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971EB4#FFFFFF#000000##FFFFFF
##971EB41.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #971eb4;
/* rgb */ color: rgb(151, 30, 180);
/* oklch */ color: oklch(50.6% 0.224 318.5);
Tailwind
colors: {
  custom: {
    50: '#ba6ccb',
    500: '#971eb4',
    950: '#000000',
  },
}
SCSS
$custom: #971eb4;
$custom-light: #ba6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#971eb4",
  "rgb": {
    "r": 151,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 288.4,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50614,
    "c": 0.22415,
    "h": 318.5
  },
  "luminance": 0.10803
}

Semantic roles & 50–950 ramp

primary
#971EB4
secondary
#77CB63
accent
#EE3A5D
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #971EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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