#971A8B#971A8B

#971A8B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.196 H 332.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#971A8B
RGBrgb(151, 26, 139)
HSLhsl(306, 71%, 35%)
HSVhsv(306, 83%, 59%)
CMYKcmyk(0%, 82.8%, 7.9%, 40.8%)
CIE-LABlab(36.34, 60.44, -32.65)
CIE-LCHlch(36.34, 68.69, 331.62°)
OKLaboklab(47.73% 0.1743 -0.0898)
OKLCHoklch(47.73% 0.196 332.7)
XYZxyz(17.7922, 9.1837, 25.2567)
Luminance0.0918 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A8B #1A9726
analogous
#651A97 #971A8B #971A4D
triadic
#971A8B #8B971A #1A8B97
tetradic
#971A8B #97651A #1A9726 #1A4D97
square
#971A8B #97651A #1A9726 #1A4D97
split-complementary
#971A8B #4D971A #1A9765
monochromatic
#2F082B #63115B #971A8B #CB23BB #E04BD2

Accessibility & contrast

On white

7.40
#971A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#971A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971A8B
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A8B#FFFFFF#000000##FFFFFF
##971A8B1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#475C88
Tritanopia (blue-blind)
#9E2A53
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #971a8b;
/* rgb */ color: rgb(151, 26, 139);
/* oklch */ color: oklch(47.7% 0.196 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba68ad',
    500: '#971a8b',
    950: '#000000',
  },
}
SCSS
$custom: #971a8b;
$custom-light: #ba68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#971a8b",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 305.76,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47734,
    "c": 0.1961,
    "h": 332.7
  },
  "luminance": 0.09182
}

Semantic roles & 50–950 ramp

primary
#971A8B
secondary
#4BC256
accent
#ED4C3A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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