#8E2A71#8E2A71

#8E2A71 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.2% C 0.155 H 341.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#8E2A71
RGBrgb(142, 42, 113)
HSLhsl(317, 54%, 36%)
HSVhsv(317, 70%, 56%)
CMYKcmyk(0%, 70.4%, 20.4%, 44.3%)
CIE-LABlab(35.20, 49.28, -18.33)
CIE-LCHlch(35.20, 52.58, 339.60°)
OKLaboklab(46.19% 0.1474 -0.0492)
OKLCHoklch(46.19% 0.155 341.5)
XYZxyz(14.9644, 8.6004, 16.4915)
Luminance0.0860 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2A71 #2A8E47
analogous
#792A8E #8E2A71 #8E2A3F
triadic
#8E2A71 #718E2A #2A718E
tetradic
#8E2A71 #8E792A #2A8E47 #2A3F8E
square
#8E2A71 #8E792A #2A8E47 #2A3F8E
split-complementary
#8E2A71 #3F8E2A #2A8E79
monochromatic
#300E26 #5F1C4B #8E2A71 #BD3897 #D162B0

Accessibility & contrast

On white

7.72
#8E2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8E2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2A71
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2A71#FFFFFF#000000##FFFFFF
##8E2A711.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324873
Deuteranopia (green-blind)
#51596F
Tritanopia (blue-blind)
#972C49
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e2a71;
/* rgb */ color: rgb(142, 42, 113);
/* oklch */ color: oklch(46.2% 0.155 341.5);
Tailwind
colors: {
  custom: {
    50: '#b26c9a',
    500: '#8e2a71',
    950: '#000000',
  },
}
SCSS
$custom: #8e2a71;
$custom-light: #b26c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2a71",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 317.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4619,
    "c": 0.15539,
    "h": 341.5
  },
  "luminance": 0.08599
}

Semantic roles & 50–950 ramp

primary
#8E2A71
secondary
#5DB677
accent
#DE754A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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