#8E1D7E#8E1D7E

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

Color values

HEX#8E1D7E
RGBrgb(142, 29, 126)
HSLhsl(308, 66%, 34%)
HSVhsv(308, 80%, 56%)
CMYKcmyk(0%, 79.6%, 11.3%, 44.3%)
CIE-LABlab(34.27, 55.68, -27.95)
CIE-LCHlch(34.27, 62.30, 333.34°)
OKLaboklab(45.72% 0.1624 -0.0765)
OKLCHoklch(45.72% 0.18 334.8)
XYZxyz(15.3608, 8.1373, 20.4963)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D7E #1D8E2D
analogous
#651D8E #8E1D7E #8E1D45
triadic
#8E1D7E #7E8E1D #1D7E8E
tetradic
#8E1D7E #8E651D #1D8E2D #1D458E
square
#8E1D7E #8E651D #1D8E2D #1D458E
split-complementary
#8E1D7E #458E1D #1D8E65
monochromatic
#280824 #5B1351 #8E1D7E #C127AB #DA4BC6

Accessibility & contrast

On white

7.99
#8E1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D7E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D7E#FFFFFF#000000##FFFFFF
##8E1D7E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4681
Deuteranopia (green-blind)
#47567B
Tritanopia (blue-blind)
#95284C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1d7e;
/* rgb */ color: rgb(142, 29, 126);
/* oklch */ color: oklch(45.7% 0.180 334.8);
Tailwind
colors: {
  custom: {
    50: '#b367a4',
    500: '#8e1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d7e;
$custom-light: #b367a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d7e",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 308.496,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4572,
    "c": 0.17953,
    "h": 334.8
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#8E1D7E
secondary
#4ABD5A
accent
#E9573F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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