#972887#972887

#972887 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.179 H 334.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#972887
RGBrgb(151, 40, 135)
HSLhsl(309, 58%, 37%)
HSVhsv(309, 74%, 59%)
CMYKcmyk(0%, 73.5%, 10.6%, 40.8%)
CIE-LABlab(37.57, 55.68, -28.25)
CIE-LCHlch(37.57, 62.43, 333.10°)
OKLaboklab(48.55% 0.1619 -0.0772)
OKLCHoklch(48.55% 0.179 334.5)
XYZxyz(17.8946, 9.8477, 23.8753)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972887 #289738
analogous
#702897 #972887 #97284F
triadic
#972887 #879728 #288797
tetradic
#972887 #977028 #289738 #284F97
square
#972887 #977028 #289738 #284F97
split-complementary
#972887 #4F9728 #289770
monochromatic
#360E30 #671B5C #972887 #C735B2 #D664C5

Accessibility & contrast

On white

7.07
#972887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#972887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #972887
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972887#FFFFFF#000000##FFFFFF
##9728871.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E8A
Deuteranopia (green-blind)
#4E5E84
Tritanopia (blue-blind)
#9E3155
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #972887;
/* rgb */ color: rgb(151, 40, 135);
/* oklch */ color: oklch(48.5% 0.179 334.5);
Tailwind
colors: {
  custom: {
    50: '#b96daa',
    500: '#972887',
    950: '#000000',
  },
}
SCSS
$custom: #972887;
$custom-light: #b96daa;
$custom-dark: #000000;
JSON
{
  "hex": "#972887",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 308.649,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48549,
    "c": 0.17941,
    "h": 334.5
  },
  "luminance": 0.09846
}

Semantic roles & 50–950 ramp

primary
#972887
secondary
#5FBC6D
accent
#E15D46
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #972887

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

Preview Lab → · Contrast checker → · Palette generator →

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