#972878#972878

#972878 is a mid, vivid pink. Relative luminance 0.095; OKLCH L 47.8% C 0.169 H 341.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#972878
RGBrgb(151, 40, 120)
HSLhsl(317, 58%, 37%)
HSVhsv(317, 74%, 59%)
CMYKcmyk(0%, 73.5%, 20.5%, 40.8%)
CIE-LABlab(36.85, 53.44, -20.06)
CIE-LCHlch(36.85, 57.08, 339.43°)
OKLaboklab(47.79% 0.16 -0.0539)
OKLCHoklch(47.79% 0.169 341.4)
XYZxyz(16.9120, 9.4546, 18.6999)
Luminance0.0945 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972878 #289747
analogous
#7F2897 #972878 #972840
triadic
#972878 #789728 #287897
tetradic
#972878 #977F28 #289747 #284097
square
#972878 #977F28 #289747 #284097
split-complementary
#972878 #409728 #28977F
monochromatic
#360E2B #671B52 #972878 #C7359E #D664B6

Accessibility & contrast

On white

7.26
#972878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#972878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #972878
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972878#FFFFFF#000000##FFFFFF
##9728781.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314B7A
Deuteranopia (green-blind)
#545D75
Tritanopia (blue-blind)
#A02A4C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #972878;
/* rgb */ color: rgb(151, 40, 120);
/* oklch */ color: oklch(47.8% 0.169 341.4);
Tailwind
colors: {
  custom: {
    50: '#b96d9f',
    500: '#972878',
    950: '#000000',
  },
}
SCSS
$custom: #972878;
$custom-light: #b96d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#972878",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 316.757,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4779,
    "c": 0.16887,
    "h": 341.4
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

primary
#972878
secondary
#5FBC79
accent
#E17246
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12080E
muted
#817B7E

Preview Lab

Preview with #972878

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

Preview Lab → · Contrast checker → · Palette generator →

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