#971D8C#971D8C

#971D8C is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.194 H 332.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#971D8C
RGBrgb(151, 29, 140)
HSLhsl(305, 68%, 35%)
HSVhsv(305, 81%, 59%)
CMYKcmyk(0%, 80.8%, 7.3%, 40.8%)
CIE-LABlab(36.66, 59.83, -32.76)
CIE-LCHlch(36.66, 68.21, 331.29°)
OKLaboklab(47.98% 0.1721 -0.0902)
OKLCHoklch(47.98% 0.194 332.3)
XYZxyz(17.9356, 9.3530, 25.6666)
Luminance0.0935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971D8C #1D9728
analogous
#651D97 #971D8C #971D4F
triadic
#971D8C #8C971D #1D8C97
tetradic
#971D8C #97651D #1D9728 #1D4F97
square
#971D8C #97651D #1D9728 #1D4F97
split-complementary
#971D8C #4F971D #1D9765
monochromatic
#30092D #64135C #971D8C #CA27BC #DE51D1

Accessibility & contrast

On white

7.32
#971D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #971D8C
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971D8C#FFFFFF#000000##FFFFFF
##971D8C1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#485C89
Tritanopia (blue-blind)
#9E2D54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #971d8c;
/* rgb */ color: rgb(151, 29, 140);
/* oklch */ color: oklch(48.0% 0.194 332.3);
Tailwind
colors: {
  custom: {
    50: '#b969ae',
    500: '#971d8c',
    950: '#000000',
  },
}
SCSS
$custom: #971d8c;
$custom-light: #b969ae;
$custom-dark: #000000;
JSON
{
  "hex": "#971d8c",
  "rgb": {
    "r": 151,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 305.41,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4798,
    "c": 0.19428,
    "h": 332.3
  },
  "luminance": 0.09351
}

Semantic roles & 50–950 ramp

primary
#971D8C
secondary
#4FC05A
accent
#EB4D3D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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