#8E1D7D#8E1D7D

#8E1D7D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.179 H 335.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8E1D7D
RGBrgb(142, 29, 125)
HSLhsl(309, 66%, 34%)
HSVhsv(309, 80%, 56%)
CMYKcmyk(0%, 79.6%, 12%, 44.3%)
CIE-LABlab(34.21, 55.53, -27.41)
CIE-LCHlch(34.21, 61.93, 333.73°)
OKLaboklab(45.67% 0.1623 -0.075)
OKLCHoklch(45.67% 0.179 335.2)
XYZxyz(15.2966, 8.1116, 20.1581)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D7D #1D8E2E
analogous
#661D8E #8E1D7D #8E1D44
triadic
#8E1D7D #7D8E1D #1D7D8E
tetradic
#8E1D7D #8E661D #1D8E2E #1D448E
square
#8E1D7D #8E661D #1D8E2E #1D448E
split-complementary
#8E1D7D #448E1D #1D8E66
monochromatic
#280824 #5B1350 #8E1D7D #C127AA #DA4BC5

Accessibility & contrast

On white

8.01
#8E1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8E1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D7D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D7D#FFFFFF#000000##FFFFFF
##8E1D7D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4680
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#95274C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1d7d;
/* rgb */ color: rgb(142, 29, 125);
/* oklch */ color: oklch(45.7% 0.179 335.2);
Tailwind
colors: {
  custom: {
    50: '#b367a3',
    500: '#8e1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d7d;
$custom-light: #b367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d7d",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 309.027,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45665,
    "c": 0.17881,
    "h": 335.2
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#8E1D7D
secondary
#4ABD5B
accent
#E9583F
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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