#971F9A#971F9A

#971F9A is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.203 H 327.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#971F9A
RGBrgb(151, 31, 154)
HSLhsl(299, 66%, 36%)
HSVhsv(299, 80%, 60%)
CMYKcmyk(1.9%, 79.9%, 0%, 39.6%)
CIE-LABlab(37.65, 61.53, -39.73)
CIE-LCHlch(37.65, 73.25, 327.15°)
OKLaboklab(48.95% 0.1703 -0.1104)
OKLCHoklch(48.95% 0.203 327)
XYZxyz(19.0849, 9.8938, 31.4701)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F9A #229A1F
analogous
#5A1F9A #971F9A #9A1F60
triadic
#971F9A #9A971F #1F9A97
tetradic
#971F9A #9A5A1F #229A1F #1F609A
square
#971F9A #9A5A1F #229A1F #1F609A
split-complementary
#971F9A #609A1F #1F9A5A
monochromatic
#330A34 #651567 #971F9A #C929CD #DA56DD

Accessibility & contrast

On white

7.05
#971F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#971F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F9A
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F9A#FFFFFF#000000##FFFFFF
##971F9A1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#405E97
Tritanopia (blue-blind)
#9B355D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #971f9a;
/* rgb */ color: rgb(151, 31, 154);
/* oklch */ color: oklch(48.9% 0.203 327.0);
Tailwind
colors: {
  custom: {
    50: '#b96bb8',
    500: '#971f9a',
    950: '#000000',
  },
}
SCSS
$custom: #971f9a;
$custom-light: #b96bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#971f9a",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 298.537,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4895,
    "c": 0.20295,
    "h": 327
  },
  "luminance": 0.09892
}

Semantic roles & 50–950 ramp

primary
#971F9A
secondary
#57C154
accent
#E93E43
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #971F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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