#971C8D#971C8D

#971C8D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.196 H 331.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#971C8D
RGBrgb(151, 28, 141)
HSLhsl(305, 69%, 35%)
HSVhsv(305, 81%, 59%)
CMYKcmyk(0%, 81.5%, 6.6%, 40.8%)
CIE-LABlab(36.62, 60.24, -33.43)
CIE-LCHlch(36.62, 68.90, 330.97°)
OKLaboklab(47.97% 0.1729 -0.0921)
OKLCHoklch(47.97% 0.196 331.9)
XYZxyz(17.9855, 9.3344, 26.0486)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971C8D #1C9726
analogous
#631C97 #971C8D #971C50
triadic
#971C8D #8D971C #1C8D97
tetradic
#971C8D #97631C #1C9726 #1C5097
square
#971C8D #97631C #1C9726 #1C5097
split-complementary
#971C8D #50971C #1C9763
monochromatic
#30092D #63125D #971C8D #CB26BD #DE4FD3

Accessibility & contrast

On white

7.33
#971C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#971C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971C8D
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971C8D#FFFFFF#000000##FFFFFF
##971C8D1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#475C8A
Tritanopia (blue-blind)
#9E2D55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971c8d;
/* rgb */ color: rgb(151, 28, 141);
/* oklch */ color: oklch(48.0% 0.196 331.9);
Tailwind
colors: {
  custom: {
    50: '#b969af',
    500: '#971c8d',
    950: '#000000',
  },
}
SCSS
$custom: #971c8d;
$custom-light: #b969af;
$custom-dark: #000000;
JSON
{
  "hex": "#971c8d",
  "rgb": {
    "r": 151,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 304.878,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47973,
    "c": 0.19587,
    "h": 331.9
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#971C8D
secondary
#4EC157
accent
#EC4A3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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