#971F8A#971F8A

#971F8A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.191 H 333.1°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#971F8A
RGBrgb(151, 31, 138)
HSLhsl(307, 66%, 36%)
HSVhsv(307, 79%, 59%)
CMYKcmyk(0%, 79.5%, 8.6%, 40.8%)
CIE-LABlab(36.74, 58.97, -31.40)
CIE-LCHlch(36.74, 66.81, 331.96°)
OKLaboklab(48% 0.1704 -0.0863)
OKLCHoklch(48% 0.191 333.1)
XYZxyz(17.8401, 9.3958, 24.9138)
Luminance0.0939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F8A #1F972C
analogous
#681F97 #971F8A #971F4E
triadic
#971F8A #8A971F #1F8A97
tetradic
#971F8A #97681F #1F972C #1F4E97
square
#971F8A #97681F #1F972C #1F4E97
split-complementary
#971F8A #4E971F #1F9768
monochromatic
#310A2D #64155C #971F8A #CA29B8 #DC54CD

Accessibility & contrast

On white

7.29
#971F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#971F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F8A
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F8A#FFFFFF#000000##FFFFFF
##971F8A1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#495C87
Tritanopia (blue-blind)
#9E2D54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971f8a;
/* rgb */ color: rgb(151, 31, 138);
/* oklch */ color: oklch(48.0% 0.191 333.1);
Tailwind
colors: {
  custom: {
    50: '#b96aac',
    500: '#971f8a',
    950: '#000000',
  },
}
SCSS
$custom: #971f8a;
$custom-light: #b96aac;
$custom-dark: #000000;
JSON
{
  "hex": "#971f8a",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 306.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48002,
    "c": 0.19103,
    "h": 333.1
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#971F8A
secondary
#52BF5E
accent
#E9513F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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