#971788#971788

#971788 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.196 H 333.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#971788
RGBrgb(151, 23, 136)
HSLhsl(307, 74%, 34%)
HSVhsv(307, 85%, 59%)
CMYKcmyk(0%, 84.8%, 9.9%, 40.8%)
CIE-LABlab(35.93, 60.69, -31.44)
CIE-LCHlch(35.93, 68.35, 332.61°)
OKLaboklab(47.39% 0.1763 -0.0863)
OKLCHoklch(47.39% 0.196 333.9)
XYZxyz(17.5130, 8.9713, 24.0971)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971788 #179726
analogous
#661797 #971788 #971748
triadic
#971788 #889717 #178897
tetradic
#971788 #976617 #179726 #174897
square
#971788 #976617 #179726 #174897
split-complementary
#971788 #489717 #179766
monochromatic
#2D0728 #620F58 #971788 #CC1FB8 #E346D0

Accessibility & contrast

On white

7.52
#971788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#971788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971788
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971788#FFFFFF#000000##FFFFFF
##9717881.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498B
Deuteranopia (green-blind)
#485B85
Tritanopia (blue-blind)
#9E2751
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #971788;
/* rgb */ color: rgb(151, 23, 136);
/* oklch */ color: oklch(47.4% 0.196 333.9);
Tailwind
colors: {
  custom: {
    50: '#ba67ab',
    500: '#971788',
    950: '#000000',
  },
}
SCSS
$custom: #971788;
$custom-light: #ba67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#971788",
  "rgb": {
    "r": 151,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 307.031,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.47391,
    "c": 0.19632,
    "h": 333.9
  },
  "luminance": 0.0897
}

Semantic roles & 50–950 ramp

primary
#971788
secondary
#46C455
accent
#F04D38
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #971788

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

Preview Lab → · Contrast checker → · Palette generator →

#971788 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva