#8E1B8D#8E1B8D

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

Color values

HEX#8E1B8D
RGBrgb(142, 27, 141)
HSLhsl(301, 68%, 33%)
HSVhsv(301, 81%, 56%)
CMYKcmyk(0%, 81%, 0.7%, 44.3%)
CIE-LABlab(34.92, 58.62, -36.23)
CIE-LCHlch(34.92, 68.91, 328.28°)
OKLaboklab(46.46% 0.1642 -0.1005)
OKLCHoklch(46.46% 0.192 328.5)
XYZxyz(16.3548, 8.4590, 25.9655)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B8D #1B8E1C
analogous
#551B8E #8E1B8D #8E1B53
triadic
#8E1B8D #8D8E1B #1B8D8E
tetradic
#8E1B8D #8E551B #1B8E1C #1B538E
square
#8E1B8D #8E551B #1B8E1C #1B538E
split-complementary
#8E1B8D #538E1B #1B8E55
monochromatic
#270727 #5B115A #8E1B8D #C125C0 #DC47DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E1B8D#FFFFFF#000000##FFFFFF
##8E1B8D1.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)
#004990
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#932F55
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e1b8d;
/* rgb */ color: rgb(142, 27, 141);
/* oklch */ color: oklch(46.5% 0.192 328.5);
Tailwind
colors: {
  custom: {
    50: '#b367af',
    500: '#8e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b8d;
$custom-light: #b367af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b8d",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 300.522,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4646,
    "c": 0.19246,
    "h": 328.5
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#8E1B8D
secondary
#47BE48
accent
#EB3E3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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