#971E8B#971E8B

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

Color values

HEX#971E8B
RGBrgb(151, 30, 139)
HSLhsl(306, 67%, 35%)
HSVhsv(306, 80%, 59%)
CMYKcmyk(0%, 80.1%, 7.9%, 40.8%)
CIE-LABlab(36.69, 59.40, -32.09)
CIE-LCHlch(36.69, 67.51, 331.62°)
OKLaboklab(47.99% 0.1713 -0.0882)
OKLCHoklch(47.99% 0.193 332.7)
XYZxyz(17.8871, 9.3735, 25.2883)
Luminance0.0937 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971E8B #1E972A
analogous
#661E97 #971E8B #971E4F
triadic
#971E8B #8B971E #1E8B97
tetradic
#971E8B #97661E #1E972A #1E4F97
square
#971E8B #97661E #1E972A #1E4F97
split-complementary
#971E8B #4F971E #1E9766
monochromatic
#310A2D #64145C #971E8B #CA28BA #DD53CF

Accessibility & contrast

On white

7.31
#971E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#971E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971E8B
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971E8B#FFFFFF#000000##FFFFFF
##971E8B1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8E
Deuteranopia (green-blind)
#495C88
Tritanopia (blue-blind)
#9E2D54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971e8b;
/* rgb */ color: rgb(151, 30, 139);
/* oklch */ color: oklch(48.0% 0.193 332.7);
Tailwind
colors: {
  custom: {
    50: '#b96aad',
    500: '#971e8b',
    950: '#000000',
  },
}
SCSS
$custom: #971e8b;
$custom-light: #b96aad;
$custom-dark: #000000;
JSON
{
  "hex": "#971e8b",
  "rgb": {
    "r": 151,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 305.95,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4799,
    "c": 0.19267,
    "h": 332.7
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#971E8B
secondary
#51C05C
accent
#EA4F3E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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