#972987#972987

#972987 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.178 H 334.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#972987
RGBrgb(151, 41, 135)
HSLhsl(309, 57%, 38%)
HSVhsv(309, 73%, 59%)
CMYKcmyk(0%, 72.8%, 10.6%, 40.8%)
CIE-LABlab(37.69, 55.33, -28.05)
CIE-LCHlch(37.69, 62.03, 333.11°)
OKLaboklab(48.64% 0.1609 -0.0767)
OKLCHoklch(48.64% 0.178 334.5)
XYZxyz(17.9288, 9.9160, 23.8867)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972987 #299739
analogous
#702997 #972987 #972950
triadic
#972987 #879729 #298797
tetradic
#972987 #977029 #299739 #295097
square
#972987 #977029 #299739 #295097
split-complementary
#972987 #509729 #299770
monochromatic
#370F31 #671C5C #972987 #C736B2 #D565C5

Accessibility & contrast

On white

7.04
#972987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#972987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #972987
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972987#FFFFFF#000000##FFFFFF
##9729871.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E8A
Deuteranopia (green-blind)
#4F5E84
Tritanopia (blue-blind)
#9E3255
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #972987;
/* rgb */ color: rgb(151, 41, 135);
/* oklch */ color: oklch(48.6% 0.178 334.5);
Tailwind
colors: {
  custom: {
    50: '#b96eaa',
    500: '#972987',
    950: '#000000',
  },
}
SCSS
$custom: #972987;
$custom-light: #b96eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#972987",
  "rgb": {
    "r": 151,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 308.727,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48638,
    "c": 0.17825,
    "h": 334.5
  },
  "luminance": 0.09914
}

Semantic roles & 50–950 ramp

primary
#972987
secondary
#61BB6E
accent
#E15E47
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #972987

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

Preview Lab → · Contrast checker → · Palette generator →

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