#971D8E#971D8E

#971D8E is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.196 H 331.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#971D8E
RGBrgb(151, 29, 142)
HSLhsl(304, 68%, 35%)
HSVhsv(304, 81%, 59%)
CMYKcmyk(0%, 80.8%, 6%, 40.8%)
CIE-LABlab(36.77, 60.14, -33.81)
CIE-LCHlch(36.77, 68.99, 330.65°)
OKLaboklab(48.1% 0.1721 -0.0932)
OKLCHoklch(48.1% 0.196 331.6)
XYZxyz(18.0844, 9.4126, 26.4503)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971D8E #1D9726
analogous
#631D97 #971D8E #971D51
triadic
#971D8E #8E971D #1D8E97
tetradic
#971D8E #97631D #1D9726 #1D5197
square
#971D8E #97631D #1D9726 #1D5197
split-complementary
#971D8E #51971D #1D9763
monochromatic
#30092D #64135E #971D8E #CA27BE #DE51D3

Accessibility & contrast

On white

7.29
#971D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#971D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971D8E
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971D8E#FFFFFF#000000##FFFFFF
##971D8E1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#475C8B
Tritanopia (blue-blind)
#9D2E56
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971d8e;
/* rgb */ color: rgb(151, 29, 142);
/* oklch */ color: oklch(48.1% 0.196 331.6);
Tailwind
colors: {
  custom: {
    50: '#b969af',
    500: '#971d8e',
    950: '#000000',
  },
}
SCSS
$custom: #971d8e;
$custom-light: #b969af;
$custom-dark: #000000;
JSON
{
  "hex": "#971d8e",
  "rgb": {
    "r": 151,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 304.426,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48096,
    "c": 0.19573,
    "h": 331.6
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#971D8E
secondary
#4FC058
accent
#EB4A3D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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