#971F8D#971F8D

#971F8D is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.193 H 331.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#971F8D
RGBrgb(151, 31, 141)
HSLhsl(305, 66%, 36%)
HSVhsv(305, 79%, 59%)
CMYKcmyk(0%, 79.5%, 6.6%, 40.8%)
CIE-LABlab(36.90, 59.44, -32.99)
CIE-LCHlch(36.90, 67.98, 330.97°)
OKLaboklab(48.17% 0.1705 -0.0909)
OKLCHoklch(48.17% 0.193 331.9)
XYZxyz(18.0603, 9.4839, 26.0735)
Luminance0.0948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F8D #1F9729
analogous
#651F97 #971F8D #971F51
triadic
#971F8D #8D971F #1F8D97
tetradic
#971F8D #97651F #1F9729 #1F5197
square
#971F8D #97651F #1F9729 #1F5197
split-complementary
#971F8D #51971F #1F9765
monochromatic
#310A2E #64155E #971F8D #CA29BC #DC54D1

Accessibility & contrast

On white

7.25
#971F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#971F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F8D
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F8D#FFFFFF#000000##FFFFFF
##971F8D1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#485D8A
Tritanopia (blue-blind)
#9E2E55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #971f8d;
/* rgb */ color: rgb(151, 31, 141);
/* oklch */ color: oklch(48.2% 0.193 331.9);
Tailwind
colors: {
  custom: {
    50: '#b96aaf',
    500: '#971f8d',
    950: '#000000',
  },
}
SCSS
$custom: #971f8d;
$custom-light: #b96aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#971f8d",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 305,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48173,
    "c": 0.19321,
    "h": 331.9
  },
  "luminance": 0.09482
}

Semantic roles & 50–950 ramp

primary
#971F8D
secondary
#52BF5B
accent
#E94D3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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