#971A8A#971A8A

#971A8A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.195 H 333.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#971A8A
RGBrgb(151, 26, 138)
HSLhsl(306, 71%, 35%)
HSVhsv(306, 83%, 59%)
CMYKcmyk(0%, 82.8%, 8.6%, 40.8%)
CIE-LABlab(36.28, 60.29, -32.12)
CIE-LCHlch(36.28, 68.31, 331.95°)
OKLaboklab(47.68% 0.1743 -0.0883)
OKLCHoklch(47.68% 0.195 333.1)
XYZxyz(17.7195, 9.1546, 24.8736)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A8A #1A9727
analogous
#661A97 #971A8A #971A4C
triadic
#971A8A #8A971A #1A8A97
tetradic
#971A8A #97661A #1A9727 #1A4C97
square
#971A8A #97661A #1A9727 #1A4C97
split-complementary
#971A8A #4C971A #1A9766
monochromatic
#2F082B #63115A #971A8A #CB23BA #E04BD1

Accessibility & contrast

On white

7.42
#971A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#971A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971A8A
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A8A#FFFFFF#000000##FFFFFF
##971A8A1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#485B87
Tritanopia (blue-blind)
#9E2A53
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #971a8a;
/* rgb */ color: rgb(151, 26, 138);
/* oklch */ color: oklch(47.7% 0.195 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba68ac',
    500: '#971a8a',
    950: '#000000',
  },
}
SCSS
$custom: #971a8a;
$custom-light: #ba68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#971a8a",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 306.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47677,
    "c": 0.19539,
    "h": 333.1
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#971A8A
secondary
#4BC257
accent
#ED4D3A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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