#8E1A8A#8E1A8A

#8E1A8A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.191 H 329.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8E1A8A
RGBrgb(142, 26, 138)
HSLhsl(302, 69%, 33%)
HSVhsv(302, 82%, 56%)
CMYKcmyk(0%, 81.7%, 2.8%, 44.3%)
CIE-LABlab(34.65, 58.39, -34.81)
CIE-LCHlch(34.65, 67.98, 329.20°)
OKLaboklab(46.21% 0.165 -0.0963)
OKLCHoklch(46.21% 0.191 329.7)
XYZxyz(16.1121, 8.3258, 24.7983)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A8A #1A8E1E
analogous
#581A8E #8E1A8A #8E1A50
triadic
#8E1A8A #8A8E1A #1A8A8E
tetradic
#8E1A8A #8E581A #1A8E1E #1A508E
square
#8E1A8A #8E581A #1A8E1E #1A508E
split-complementary
#8E1A8A #508E1A #1A8E58
monochromatic
#270725 #5A1158 #8E1A8A #C223BC #DD45D8

Accessibility & contrast

On white

7.88
#8E1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8E1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1A8A
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1A8A#FFFFFF#000000##FFFFFF
##8E1A8A1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#3F5787
Tritanopia (blue-blind)
#932D53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1a8a;
/* rgb */ color: rgb(142, 26, 138);
/* oklch */ color: oklch(46.2% 0.191 329.7);
Tailwind
colors: {
  custom: {
    50: '#b367ac',
    500: '#8e1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a8a;
$custom-light: #b367ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a8a",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 302.069,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.46212,
    "c": 0.19107,
    "h": 329.7
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#8E1A8A
secondary
#45BE4A
accent
#EC423C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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