#971F9D#971F9D

#971F9D is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.205 H 326.0°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#971F9D
RGBrgb(151, 31, 157)
HSLhsl(297, 67%, 37%)
HSVhsv(297, 80%, 62%)
CMYKcmyk(3.8%, 80.3%, 0%, 38.4%)
CIE-LABlab(37.83, 62.04, -41.26)
CIE-LCHlch(37.83, 74.50, 326.37°)
OKLaboklab(49.14% 0.1701 -0.1149)
OKLCHoklch(49.14% 0.205 326)
XYZxyz(19.3379, 9.9950, 32.8024)
Luminance0.0999 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F9D #259D1F
analogous
#581F9D #971F9D #9D1F64
triadic
#971F9D #9D971F #1F9D97
tetradic
#971F9D #9D581F #259D1F #1F649D
square
#971F9D #9D581F #259D1F #1F649D
split-complementary
#971F9D #649D1F #1F9D58
monochromatic
#350B37 #66156A #971F9D #C829D0 #D858DE

Accessibility & contrast

On white

7.00
#971F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#971F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971F9D
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F9D#FFFFFF#000000##FFFFFF
##971F9D1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#3E5E9A
Tritanopia (blue-blind)
#9B375F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #971f9d;
/* rgb */ color: rgb(151, 31, 157);
/* oklch */ color: oklch(49.1% 0.205 326.0);
Tailwind
colors: {
  custom: {
    50: '#ba6bba',
    500: '#971f9d',
    950: '#000000',
  },
}
SCSS
$custom: #971f9d;
$custom-light: #ba6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#971f9d",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 297.143,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49137,
    "c": 0.20525,
    "h": 326
  },
  "luminance": 0.09994
}

Semantic roles & 50–950 ramp

primary
#971F9D
secondary
#5BC256
accent
#EA3E46
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #971F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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