#972786#972786

#972786 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.4% C 0.180 H 334.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#972786
RGBrgb(151, 39, 134)
HSLhsl(309, 59%, 37%)
HSVhsv(309, 74%, 59%)
CMYKcmyk(0%, 74.2%, 11.3%, 40.8%)
CIE-LABlab(37.40, 55.86, -27.90)
CIE-LCHlch(37.40, 62.44, 333.46°)
OKLaboklab(48.41% 0.1629 -0.0762)
OKLCHoklch(48.41% 0.18 334.9)
XYZxyz(17.7913, 9.7531, 23.4952)
Luminance0.0975 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972786 #279738
analogous
#702797 #972786 #97274E
triadic
#972786 #869727 #278697
tetradic
#972786 #977027 #279738 #274E97
square
#972786 #977027 #279738 #274E97
split-complementary
#972786 #4E9727 #279770
monochromatic
#360E30 #661A5B #972786 #C834B1 #D662C5

Accessibility & contrast

On white

7.12
#972786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#972786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #972786
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972786#FFFFFF#000000##FFFFFF
##9727861.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D89
Deuteranopia (green-blind)
#4E5E83
Tritanopia (blue-blind)
#9F3054
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #972786;
/* rgb */ color: rgb(151, 39, 134);
/* oklch */ color: oklch(48.4% 0.180 334.9);
Tailwind
colors: {
  custom: {
    50: '#b96da9',
    500: '#972786',
    950: '#000000',
  },
}
SCSS
$custom: #972786;
$custom-light: #b96da9;
$custom-dark: #000000;
JSON
{
  "hex": "#972786",
  "rgb": {
    "r": 151,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 309.107,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48408,
    "c": 0.17983,
    "h": 334.9
  },
  "luminance": 0.09752
}

Semantic roles & 50–950 ramp

primary
#972786
secondary
#5EBC6C
accent
#E25D46
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #972786

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

Preview Lab → · Contrast checker → · Palette generator →

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