#8E1A7E#8E1A7E

#8E1A7E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.182 H 334.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8E1A7E
RGBrgb(142, 26, 126)
HSLhsl(308, 69%, 33%)
HSVhsv(308, 82%, 56%)
CMYKcmyk(0%, 81.7%, 11.3%, 44.3%)
CIE-LABlab(33.98, 56.52, -28.41)
CIE-LCHlch(33.98, 63.26, 333.31°)
OKLaboklab(45.51% 0.1649 -0.0778)
OKLCHoklch(45.51% 0.182 334.7)
XYZxyz(15.2908, 7.9973, 20.4729)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A7E #1A8E2A
analogous
#641A8E #8E1A7E #8E1A44
triadic
#8E1A7E #7E8E1A #1A7E8E
tetradic
#8E1A7E #8E641A #1A8E2A #1A448E
square
#8E1A7E #8E641A #1A8E2A #1A448E
split-complementary
#8E1A7E #448E1A #1A8E64
monochromatic
#270722 #5A1150 #8E1A7E #C223AC #DD45C8

Accessibility & contrast

On white

8.08
#8E1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8E1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1A7E
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1A7E#FFFFFF#000000##FFFFFF
##8E1A7E1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184581
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#95264C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1a7e;
/* rgb */ color: rgb(142, 26, 126);
/* oklch */ color: oklch(45.5% 0.182 334.7);
Tailwind
colors: {
  custom: {
    50: '#b366a4',
    500: '#8e1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a7e;
$custom-light: #b366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a7e",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 308.276,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45513,
    "c": 0.18231,
    "h": 334.7
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#8E1A7E
secondary
#45BE56
accent
#EC543C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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