#8E1A7C#8E1A7C

#8E1A7C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.181 H 335.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8E1A7C
RGBrgb(142, 26, 124)
HSLhsl(309, 69%, 33%)
HSVhsv(309, 82%, 56%)
CMYKcmyk(0%, 81.7%, 12.7%, 44.3%)
CIE-LABlab(33.87, 56.22, -27.33)
CIE-LCHlch(33.87, 62.51, 334.08°)
OKLaboklab(45.4% 0.1648 -0.0747)
OKLCHoklch(45.4% 0.181 335.6)
XYZxyz(15.1631, 7.9462, 19.8001)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A7C #1A8E2C
analogous
#661A8E #8E1A7C #8E1A42
triadic
#8E1A7C #7C8E1A #1A7C8E
tetradic
#8E1A7C #8E661A #1A8E2C #1A428E
square
#8E1A7C #8E661A #1A8E2C #1A428E
split-complementary
#8E1A7C #428E1A #1A8E66
monochromatic
#270722 #5A114F #8E1A7C #C223A9 #DD45C5

Accessibility & contrast

On white

8.11
#8E1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1A7C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1A7C#FFFFFF#000000##FFFFFF
##8E1A7C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457F
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#96254B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1a7c;
/* rgb */ color: rgb(142, 26, 124);
/* oklch */ color: oklch(45.4% 0.181 335.6);
Tailwind
colors: {
  custom: {
    50: '#b366a2',
    500: '#8e1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a7c;
$custom-light: #b366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a7c",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 309.31,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.1809,
    "h": 335.6
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#8E1A7C
secondary
#45BE58
accent
#EC573C
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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