#971F8F#971F8F

#971F8F is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.3% C 0.195 H 331.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#971F8F
RGBrgb(151, 31, 143)
HSLhsl(304, 66%, 36%)
HSVhsv(304, 79%, 59%)
CMYKcmyk(0%, 79.5%, 5.3%, 40.8%)
CIE-LABlab(37.01, 59.75, -34.04)
CIE-LCHlch(37.01, 68.77, 330.33°)
OKLaboklab(48.29% 0.1705 -0.0939)
OKLCHoklch(48.29% 0.195 331.2)
XYZxyz(18.2104, 9.5440, 26.8643)
Luminance0.0954 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F8F #1F9727
analogous
#631F97 #971F8F #971F53
triadic
#971F8F #8F971F #1F8F97
tetradic
#971F8F #97631F #1F9727 #1F5397
square
#971F8F #97631F #1F9727 #1F5397
split-complementary
#971F8F #53971F #1F9763
monochromatic
#310A2F #64155F #971F8F #CA29BF #DC54D3

Accessibility & contrast

On white

7.22
#971F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#971F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F8F
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F8F#FFFFFF#000000##FFFFFF
##971F8F1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104D92
Deuteranopia (green-blind)
#475D8C
Tritanopia (blue-blind)
#9D3057
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #971f8f;
/* rgb */ color: rgb(151, 31, 143);
/* oklch */ color: oklch(48.3% 0.195 331.2);
Tailwind
colors: {
  custom: {
    50: '#b96ab0',
    500: '#971f8f',
    950: '#000000',
  },
}
SCSS
$custom: #971f8f;
$custom-light: #b96ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#971f8f",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 304,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48288,
    "c": 0.19467,
    "h": 331.2
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#971F8F
secondary
#52BF5A
accent
#E94A3F
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #971F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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