#8E1879#8E1879

#8E1879 is a mid, vivid pink. Relative luminance 0.078; OKLCH L 45.1% C 0.181 H 336.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8E1879
RGBrgb(142, 24, 121)
HSLhsl(311, 71%, 33%)
HSVhsv(311, 83%, 56%)
CMYKcmyk(0%, 83.1%, 14.8%, 44.3%)
CIE-LABlab(33.53, 56.30, -25.97)
CIE-LCHlch(33.53, 62.00, 335.24°)
OKLaboklab(45.11% 0.1661 -0.0708)
OKLCHoklch(45.11% 0.181 336.9)
XYZxyz(14.9335, 7.7860, 18.8018)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1879 #188E2D
analogous
#68188E #8E1879 #8E183E
triadic
#8E1879 #798E18 #18798E
tetradic
#8E1879 #8E6818 #188E2D #183E8E
square
#8E1879 #8E6818 #188E2D #183E8E
split-complementary
#8E1879 #3E8E18 #188E68
monochromatic
#250620 #5A0F4C #8E1879 #C221A6 #DF41C3

Accessibility & contrast

On white

8.21
#8E1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8E1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1879
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1879#FFFFFF#000000##FFFFFF
##8E18791.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447B
Deuteranopia (green-blind)
#475576
Tritanopia (blue-blind)
#962148
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e1879;
/* rgb */ color: rgb(142, 24, 121);
/* oklch */ color: oklch(45.1% 0.181 336.9);
Tailwind
colors: {
  custom: {
    50: '#b365a0',
    500: '#8e1879',
    950: '#000000',
  },
}
SCSS
$custom: #8e1879;
$custom-light: #b365a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1879",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 310.678,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45109,
    "c": 0.18057,
    "h": 336.9
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#8E1879
secondary
#42C058
accent
#EE5A3A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8E1879

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

Preview Lab → · Contrast checker → · Palette generator →

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