#8E1276#8E1276

#8E1276 is a dark, vivid pink. Relative luminance 0.075; OKLCH L 44.6% C 0.183 H 338.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#8E1276
RGBrgb(142, 18, 118)
HSLhsl(312, 78%, 31%)
HSVhsv(312, 87%, 56%)
CMYKcmyk(0%, 87.3%, 16.9%, 44.3%)
CIE-LABlab(32.90, 57.24, -25.06)
CIE-LCHlch(32.90, 62.49, 336.35°)
OKLaboklab(44.61% 0.17 -0.0682)
OKLCHoklch(44.61% 0.183 338.2)
XYZxyz(14.6420, 7.4929, 17.8112)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1276 #128E2A
analogous
#68128E #8E1276 #8E1238
triadic
#8E1276 #768E12 #12768E
tetradic
#8E1276 #8E6812 #128E2A #12388E
square
#8E1276 #8E6812 #128E2A #12388E
split-complementary
#8E1276 #388E12 #128E68
monochromatic
#21041C #580B49 #8E1276 #C419A3 #E535C3

Accessibility & contrast

On white

8.41
#8E1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8E1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1276
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1276#FFFFFF#000000##FFFFFF
##8E12761.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4278
Deuteranopia (green-blind)
#475473
Tritanopia (blue-blind)
#961B46
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8e1276;
/* rgb */ color: rgb(142, 18, 118);
/* oklch */ color: oklch(44.6% 0.183 338.2);
Tailwind
colors: {
  custom: {
    50: '#b3649e',
    500: '#8e1276',
    950: '#000000',
  },
}
SCSS
$custom: #8e1276;
$custom-light: #b3649e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1276",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 311.613,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44608,
    "c": 0.18318,
    "h": 338.2
  },
  "luminance": 0.07491
}

Semantic roles & 50–950 ramp

primary
#8E1276
secondary
#3AC254
accent
#F45934
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060E
muted
#817A7E

Preview Lab

Preview with #8E1276

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

Preview Lab → · Contrast checker → · Palette generator →

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