#972871#972871

#972871 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.5% C 0.164 H 344.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#972871
RGBrgb(151, 40, 113)
HSLhsl(321, 58%, 37%)
HSVhsv(321, 74%, 59%)
CMYKcmyk(0%, 73.5%, 25.2%, 40.8%)
CIE-LABlab(36.54, 52.48, -16.14)
CIE-LCHlch(36.54, 54.90, 342.91°)
OKLaboklab(47.47% 0.1587 -0.0429)
OKLCHoklch(47.47% 0.164 344.9)
XYZxyz(16.5026, 9.2909, 16.5438)
Luminance0.0929 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972871 #28974E
analogous
#862897 #972871 #972839
triadic
#972871 #719728 #287197
tetradic
#972871 #978628 #28974E #283997
square
#972871 #978628 #28974E #283997
split-complementary
#972871 #399728 #289786
monochromatic
#360E29 #671B4D #972871 #C73595 #D664AF

Accessibility & contrast

On white

7.35
#972871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#972871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #972871
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972871#FFFFFF#000000##FFFFFF
##9728711.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A12749
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #972871;
/* rgb */ color: rgb(151, 40, 113);
/* oklch */ color: oklch(47.5% 0.164 344.9);
Tailwind
colors: {
  custom: {
    50: '#b96c9a',
    500: '#972871',
    950: '#000000',
  },
}
SCSS
$custom: #972871;
$custom-light: #b96c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#972871",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 320.541,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47467,
    "c": 0.1644,
    "h": 344.9
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#972871
secondary
#5FBC7F
accent
#E17B46
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12080E
muted
#817B7E

Preview Lab

Preview with #972871

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

Preview Lab → · Contrast checker → · Palette generator →

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