#971FA5#971FA5

#971FA5 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.211 H 323.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#971FA5
RGBrgb(151, 31, 165)
HSLhsl(294, 68%, 38%)
HSVhsv(294, 81%, 65%)
CMYKcmyk(8.5%, 81.2%, 0%, 35.3%)
CIE-LABlab(38.34, 63.41, -45.28)
CIE-LCHlch(38.34, 77.91, 324.47°)
OKLaboklab(49.65% 0.1694 -0.1266)
OKLCHoklch(49.65% 0.211 323.2)
XYZxyz(20.0434, 10.2771, 36.5180)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971FA5 #2DA51F
analogous
#541FA5 #971FA5 #A51F70
triadic
#971FA5 #A5971F #1FA597
tetradic
#971FA5 #A5541F #2DA51F #1F70A5
square
#971FA5 #A5541F #2DA51F #1F70A5
split-complementary
#971FA5 #70A51F #1FA554
monochromatic
#390C3E #681571 #971FA5 #C52AD7 #D35EE1

Accessibility & contrast

On white

6.87
#971FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#971FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971FA5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971FA5#FFFFFF#000000##FFFFFF
##971FA51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#385FA2
Tritanopia (blue-blind)
#993B63
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #971fa5;
/* rgb */ color: rgb(151, 31, 165);
/* oklch */ color: oklch(49.7% 0.211 323.2);
Tailwind
colors: {
  custom: {
    50: '#ba6bc0',
    500: '#971fa5',
    950: '#000000',
  },
}
SCSS
$custom: #971fa5;
$custom-light: #ba6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#971fa5",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 293.731,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49653,
    "c": 0.21147,
    "h": 323.2
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#971FA5
secondary
#66C55B
accent
#EB3D4F
background
#FBF6FB
surface
#F7ECF7
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #971FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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