#971F8E#971F8E

#971F8E is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.194 H 331.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#971F8E
RGBrgb(151, 31, 142)
HSLhsl(305, 66%, 36%)
HSVhsv(305, 79%, 59%)
CMYKcmyk(0%, 79.5%, 6%, 40.8%)
CIE-LABlab(36.96, 59.59, -33.52)
CIE-LCHlch(36.96, 68.37, 330.65°)
OKLaboklab(48.23% 0.1705 -0.0924)
OKLCHoklch(48.23% 0.194 331.6)
XYZxyz(18.1350, 9.5138, 26.4672)
Luminance0.0951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F8E #1F9728
analogous
#641F97 #971F8E #971F52
triadic
#971F8E #8E971F #1F8E97
tetradic
#971F8E #97641F #1F9728 #1F5297
square
#971F8E #97641F #1F9728 #1F5297
split-complementary
#971F8E #52971F #1F9764
monochromatic
#310A2E #64155E #971F8E #CA29BE #DC54D2

Accessibility & contrast

On white

7.24
#971F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#971F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F8E
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F8E#FFFFFF#000000##FFFFFF
##971F8E1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C91
Deuteranopia (green-blind)
#475D8B
Tritanopia (blue-blind)
#9D2F56
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #971f8e;
/* rgb */ color: rgb(151, 31, 142);
/* oklch */ color: oklch(48.2% 0.194 331.6);
Tailwind
colors: {
  custom: {
    50: '#b96aaf',
    500: '#971f8e',
    950: '#000000',
  },
}
SCSS
$custom: #971f8e;
$custom-light: #b96aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#971f8e",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 304.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4823,
    "c": 0.19394,
    "h": 331.6
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#971F8E
secondary
#52BF5B
accent
#E94C3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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