#971B8B#971B8B

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

Color values

HEX#971B8B
RGBrgb(151, 27, 139)
HSLhsl(306, 70%, 35%)
HSVhsv(306, 82%, 59%)
CMYKcmyk(0%, 82.1%, 7.9%, 40.8%)
CIE-LABlab(36.42, 60.19, -32.52)
CIE-LCHlch(36.42, 68.41, 331.62°)
OKLaboklab(47.8% 0.1736 -0.0895)
OKLCHoklch(47.8% 0.195 332.7)
XYZxyz(17.8147, 9.2288, 25.2642)
Luminance0.0923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971B8B #1B9727
analogous
#651B97 #971B8B #971B4D
triadic
#971B8B #8B971B #1B8B97
tetradic
#971B8B #97651B #1B9727 #1B4D97
square
#971B8B #97651B #1B9727 #1B4D97
split-complementary
#971B8B #4D971B #1B9765
monochromatic
#2F082B #63125B #971B8B #CB24BB #DF4DD1

Accessibility & contrast

On white

7.38
#971B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#971B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971B8B
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971B8B#FFFFFF#000000##FFFFFF
##971B8B1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8E
Deuteranopia (green-blind)
#485C88
Tritanopia (blue-blind)
#9E2B53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971b8b;
/* rgb */ color: rgb(151, 27, 139);
/* oklch */ color: oklch(47.8% 0.195 332.7);
Tailwind
colors: {
  custom: {
    50: '#b969ad',
    500: '#971b8b',
    950: '#000000',
  },
}
SCSS
$custom: #971b8b;
$custom-light: #b969ad;
$custom-dark: #000000;
JSON
{
  "hex": "#971b8b",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 305.806,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.19528,
    "h": 332.7
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#971B8B
secondary
#4CC158
accent
#EC4C3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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