#8E2771#8E2771

#8E2771 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.9% C 0.159 H 341.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8E2771
RGBrgb(142, 39, 113)
HSLhsl(317, 57%, 35%)
HSVhsv(317, 73%, 56%)
CMYKcmyk(0%, 72.5%, 20.4%, 44.3%)
CIE-LABlab(34.79, 50.43, -18.96)
CIE-LCHlch(34.79, 53.88, 339.40°)
OKLaboklab(45.89% 0.1509 -0.051)
OKLCHoklch(45.89% 0.159 341.3)
XYZxyz(14.8619, 8.3955, 16.4574)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2771 #278E44
analogous
#77278E #8E2771 #8E273E
triadic
#8E2771 #718E27 #27718E
tetradic
#8E2771 #8E7727 #278E44 #273E8E
square
#8E2771 #8E7727 #278E44 #273E8E
split-complementary
#8E2771 #3E8E27 #278E77
monochromatic
#2E0D25 #5E1A4B #8E2771 #BE3497 #D25DB1

Accessibility & contrast

On white

7.84
#8E2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8E2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2771
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2771#FFFFFF#000000##FFFFFF
##8E27711.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#4F586F
Tritanopia (blue-blind)
#972948
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e2771;
/* rgb */ color: rgb(142, 39, 113);
/* oklch */ color: oklch(45.9% 0.159 341.3);
Tailwind
colors: {
  custom: {
    50: '#b26b9a',
    500: '#8e2771',
    950: '#000000',
  },
}
SCSS
$custom: #8e2771;
$custom-light: #b26b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2771",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 316.893,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.15927,
    "h": 341.3
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#8E2771
secondary
#59B874
accent
#E07348
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2771

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

Preview Lab → · Contrast checker → · Palette generator →

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