#971EA8#971EA8

#971EA8 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.8% C 0.215 H 322.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#971EA8
RGBrgb(151, 30, 168)
HSLhsl(293, 70%, 39%)
HSVhsv(293, 82%, 66%)
CMYKcmyk(10.1%, 82.1%, 0%, 34.1%)
CIE-LABlab(38.44, 64.19, -46.91)
CIE-LCHlch(38.44, 79.50, 323.84°)
OKLaboklab(49.79% 0.1697 -0.1314)
OKLCHoklch(49.79% 0.215 322.3)
XYZxyz(20.2939, 10.3362, 37.9644)
Luminance0.1033 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971EA8 #2FA81E
analogous
#521EA8 #971EA8 #A81E74
triadic
#971EA8 #A8971E #1EA897
tetradic
#971EA8 #A8521E #2FA81E #1E74A8
square
#971EA8 #A8521E #2FA81E #1E74A8
split-complementary
#971EA8 #74A81E #1EA852
monochromatic
#3A0B40 #681574 #971EA8 #C32AD9 #D25EE2

Accessibility & contrast

On white

6.85
#971EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#971EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971EA8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971EA8#FFFFFF#000000##FFFFFF
##971EA81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#355FA5
Tritanopia (blue-blind)
#993C65
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #971ea8;
/* rgb */ color: rgb(151, 30, 168);
/* oklch */ color: oklch(49.8% 0.215 322.3);
Tailwind
colors: {
  custom: {
    50: '#ba6bc2',
    500: '#971ea8',
    950: '#000000',
  },
}
SCSS
$custom: #971ea8;
$custom-light: #ba6bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#971ea8",
  "rgb": {
    "r": 151,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 292.609,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49788,
    "c": 0.21465,
    "h": 322.3
  },
  "luminance": 0.10335
}

Semantic roles & 50–950 ramp

primary
#971EA8
secondary
#68C75B
accent
#ED3B51
background
#FBF6FC
surface
#F7ECF8
border
#D0C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #971EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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