#8E1A8D#8E1A8D

#8E1A8D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.193 H 328.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8E1A8D
RGBrgb(142, 26, 141)
HSLhsl(301, 69%, 33%)
HSVhsv(301, 82%, 56%)
CMYKcmyk(0%, 81.7%, 0.7%, 44.3%)
CIE-LABlab(34.83, 58.88, -36.37)
CIE-LCHlch(34.83, 69.21, 328.29°)
OKLaboklab(46.4% 0.1649 -0.1009)
OKLCHoklch(46.4% 0.193 328.5)
XYZxyz(16.3323, 8.4139, 25.9580)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A8D #1A8E1B
analogous
#551A8E #8E1A8D #8E1A53
triadic
#8E1A8D #8D8E1A #1A8D8E
tetradic
#8E1A8D #8E551A #1A8E1B #1A538E
square
#8E1A8D #8E551A #1A8E1B #1A538E
split-complementary
#8E1A8D #538E1A #1A8E55
monochromatic
#270726 #5A115A #8E1A8D #C223C0 #DD45DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E1A8D#FFFFFF#000000##FFFFFF
##8E1A8D1.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)
#004890
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#932E54
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e1a8d;
/* rgb */ color: rgb(142, 26, 141);
/* oklch */ color: oklch(46.4% 0.193 328.5);
Tailwind
colors: {
  custom: {
    50: '#b367af',
    500: '#8e1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a8d;
$custom-light: #b367af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a8d",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 300.517,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.46396,
    "c": 0.19331,
    "h": 328.5
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#8E1A8D
secondary
#45BE46
accent
#EC3D3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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