#971A8D#971A8D

#971A8D is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.9% C 0.198 H 331.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#971A8D
RGBrgb(151, 26, 141)
HSLhsl(305, 71%, 35%)
HSVhsv(305, 83%, 59%)
CMYKcmyk(0%, 82.8%, 6.6%, 40.8%)
CIE-LABlab(36.45, 60.74, -33.71)
CIE-LCHlch(36.45, 69.47, 330.97°)
OKLaboklab(47.85% 0.1743 -0.0929)
OKLCHoklch(47.85% 0.198 331.9)
XYZxyz(17.9397, 9.2427, 26.0333)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A8D #1A9724
analogous
#631A97 #971A8D #971A4F
triadic
#971A8D #8D971A #1A8D97
tetradic
#971A8D #97631A #1A9724 #1A4F97
square
#971A8D #97631A #1A9724 #1A4F97
split-complementary
#971A8D #4F971A #1A9763
monochromatic
#2F082B #63115C #971A8D #CB23BE #E04BD4

Accessibility & contrast

On white

7.37
#971A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#971A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971A8D
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A8D#FFFFFF#000000##FFFFFF
##971A8D1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#465C8A
Tritanopia (blue-blind)
#9E2B54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971a8d;
/* rgb */ color: rgb(151, 26, 141);
/* oklch */ color: oklch(47.9% 0.198 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba68af',
    500: '#971a8d',
    950: '#000000',
  },
}
SCSS
$custom: #971a8d;
$custom-light: #ba68af;
$custom-dark: #000000;
JSON
{
  "hex": "#971a8d",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 304.8,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4785,
    "c": 0.19753,
    "h": 331.9
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

primary
#971A8D
secondary
#4BC254
accent
#ED493A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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