#8E1D8A#8E1D8A

#8E1D8A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.188 H 329.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8E1D8A
RGBrgb(142, 29, 138)
HSLhsl(302, 66%, 34%)
HSVhsv(302, 80%, 56%)
CMYKcmyk(0%, 79.6%, 2.8%, 44.3%)
CIE-LABlab(34.93, 57.57, -34.36)
CIE-LCHlch(34.93, 67.05, 329.17°)
OKLaboklab(46.41% 0.1627 -0.095)
OKLCHoklch(46.41% 0.188 329.7)
XYZxyz(16.1820, 8.4658, 24.8216)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D8A #1D8E21
analogous
#591D8E #8E1D8A #8E1D51
triadic
#8E1D8A #8A8E1D #1D8A8E
tetradic
#8E1D8A #8E591D #1D8E21 #1D518E
square
#8E1D8A #8E591D #1D8E21 #1D518E
split-complementary
#8E1D8A #518E1D #1D8E59
monochromatic
#280827 #5B1359 #8E1D8A #C127BB #DA4BD5

Accessibility & contrast

On white

7.80
#8E1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8E1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D8A
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D8A#FFFFFF#000000##FFFFFF
##8E1D8A1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07498D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#932E53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e1d8a;
/* rgb */ color: rgb(142, 29, 138);
/* oklch */ color: oklch(46.4% 0.188 329.7);
Tailwind
colors: {
  custom: {
    50: '#b368ac',
    500: '#8e1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d8a;
$custom-light: #b368ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d8a",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 302.124,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46413,
    "c": 0.1884,
    "h": 329.7
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#8E1D8A
secondary
#4ABD4E
accent
#E9453F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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