#971A8F#971A8F

#971A8F is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.199 H 331.2°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#971A8F
RGBrgb(151, 26, 143)
HSLhsl(304, 71%, 35%)
HSVhsv(304, 83%, 59%)
CMYKcmyk(0%, 82.8%, 5.3%, 40.8%)
CIE-LABlab(36.56, 61.05, -34.75)
CIE-LCHlch(36.56, 70.25, 330.35°)
OKLaboklab(47.97% 0.1743 -0.0959)
OKLCHoklch(47.97% 0.199 331.2)
XYZxyz(18.0898, 9.3028, 26.8241)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971A8F #1A9722
analogous
#611A97 #971A8F #971A51
triadic
#971A8F #8F971A #1A8F97
tetradic
#971A8F #97611A #1A9722 #1A5197
square
#971A8F #97611A #1A9722 #1A5197
split-complementary
#971A8F #51971A #1A9761
monochromatic
#2F082C #63115E #971A8F #CB23C0 #E04BD7

Accessibility & contrast

On white

7.34
#971A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#971A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971A8F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971A8F#FFFFFF#000000##FFFFFF
##971A8F1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B92
Deuteranopia (green-blind)
#455C8C
Tritanopia (blue-blind)
#9D2D56
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971a8f;
/* rgb */ color: rgb(151, 26, 143);
/* oklch */ color: oklch(48.0% 0.199 331.2);
Tailwind
colors: {
  custom: {
    50: '#ba68b0',
    500: '#971a8f',
    950: '#000000',
  },
}
SCSS
$custom: #971a8f;
$custom-light: #ba68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#971a8f",
  "rgb": {
    "r": 151,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 303.84,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47967,
    "c": 0.19897,
    "h": 331.2
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

primary
#971A8F
secondary
#4BC252
accent
#ED463A
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #971A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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