#8E2971#8E2971

#8E2971 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.1% C 0.157 H 341.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8E2971
RGBrgb(142, 41, 113)
HSLhsl(317, 55%, 36%)
HSVhsv(317, 71%, 56%)
CMYKcmyk(0%, 71.1%, 20.4%, 44.3%)
CIE-LABlab(35.06, 49.67, -18.54)
CIE-LCHlch(35.06, 53.02, 339.53°)
OKLaboklab(46.09% 0.1486 -0.0498)
OKLCHoklch(46.09% 0.157 341.5)
XYZxyz(14.9293, 8.5304, 16.4799)
Luminance0.0853 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2971 #298E46
analogous
#78298E #8E2971 #8E293E
triadic
#8E2971 #718E29 #29718E
tetradic
#8E2971 #8E7829 #298E46 #293E8E
square
#8E2971 #8E7829 #298E46 #293E8E
split-complementary
#8E2971 #3E8E29 #298E78
monochromatic
#2F0E25 #5F1B4B #8E2971 #BD3797 #D160B1

Accessibility & contrast

On white

7.76
#8E2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8E2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2971
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2971#FFFFFF#000000##FFFFFF
##8E29711.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#972B49
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e2971;
/* rgb */ color: rgb(142, 41, 113);
/* oklch */ color: oklch(46.1% 0.157 341.5);
Tailwind
colors: {
  custom: {
    50: '#b26c9a',
    500: '#8e2971',
    950: '#000000',
  },
}
SCSS
$custom: #8e2971;
$custom-light: #b26c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2971",
  "rgb": {
    "r": 142,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 317.228,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46089,
    "c": 0.15671,
    "h": 341.5
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#8E2971
secondary
#5CB776
accent
#DF7449
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2971

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

Preview Lab → · Contrast checker → · Palette generator →

#8E2971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva