#8E2772#8E2772

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

Color values

HEX#8E2772
RGBrgb(142, 39, 114)
HSLhsl(316, 57%, 35%)
HSVhsv(316, 73%, 56%)
CMYKcmyk(0%, 72.5%, 19.7%, 44.3%)
CIE-LABlab(34.84, 50.58, -19.52)
CIE-LCHlch(34.84, 54.21, 338.89°)
OKLaboklab(45.94% 0.1511 -0.0526)
OKLCHoklch(45.94% 0.16 340.8)
XYZxyz(14.9185, 8.4182, 16.7555)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2772 #278E43
analogous
#76278E #8E2772 #8E273E
triadic
#8E2772 #728E27 #27728E
tetradic
#8E2772 #8E7627 #278E43 #273E8E
square
#8E2772 #8E7627 #278E43 #273E8E
split-complementary
#8E2772 #3E8E27 #278E76
monochromatic
#2E0D25 #5E1A4B #8E2772 #BE3499 #D25DB3

Accessibility & contrast

On white

7.83
#8E2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2772
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2772#FFFFFF#000000##FFFFFF
##8E27721.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4774
Deuteranopia (green-blind)
#4F5870
Tritanopia (blue-blind)
#972949
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e2772;
/* rgb */ color: rgb(142, 39, 114);
/* oklch */ color: oklch(45.9% 0.160 340.8);
Tailwind
colors: {
  custom: {
    50: '#b26b9a',
    500: '#8e2772',
    950: '#000000',
  },
}
SCSS
$custom: #8e2772;
$custom-light: #b26b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2772",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 316.311,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4594,
    "c": 0.15994,
    "h": 340.8
  },
  "luminance": 0.08417
}

Semantic roles & 50–950 ramp

primary
#8E2772
secondary
#59B873
accent
#E07148
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2772

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

Preview Lab → · Contrast checker → · Palette generator →

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