#971F8B#971F8B

#971F8B is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.192 H 332.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#971F8B
RGBrgb(151, 31, 139)
HSLhsl(306, 66%, 36%)
HSVhsv(306, 79%, 59%)
CMYKcmyk(0%, 79.5%, 7.9%, 40.8%)
CIE-LABlab(36.79, 59.13, -31.93)
CIE-LCHlch(36.79, 67.20, 331.63°)
OKLaboklab(48.06% 0.1705 -0.0878)
OKLCHoklch(48.06% 0.192 332.7)
XYZxyz(17.9128, 9.4249, 25.2969)
Luminance0.0942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F8B #1F972B
analogous
#671F97 #971F8B #971F4F
triadic
#971F8B #8B971F #1F8B97
tetradic
#971F8B #97671F #1F972B #1F4F97
square
#971F8B #97671F #1F972B #1F4F97
split-complementary
#971F8B #4F971F #1F9767
monochromatic
#310A2E #64155C #971F8B #CA29BA #DC54CE

Accessibility & contrast

On white

7.28
#971F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #971F8B
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F8B#FFFFFF#000000##FFFFFF
##971F8B1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#495C88
Tritanopia (blue-blind)
#9E2D54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #971f8b;
/* rgb */ color: rgb(151, 31, 139);
/* oklch */ color: oklch(48.1% 0.192 332.7);
Tailwind
colors: {
  custom: {
    50: '#b96aad',
    500: '#971f8b',
    950: '#000000',
  },
}
SCSS
$custom: #971f8b;
$custom-light: #b96aad;
$custom-dark: #000000;
JSON
{
  "hex": "#971f8b",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 306,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48058,
    "c": 0.19175,
    "h": 332.7
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#971F8B
secondary
#52BF5D
accent
#E9503F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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