#8E1A7D#8E1A7D

#8E1A7D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.182 H 335.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#8E1A7D
RGBrgb(142, 26, 125)
HSLhsl(309, 69%, 33%)
HSVhsv(309, 82%, 56%)
CMYKcmyk(0%, 81.7%, 12%, 44.3%)
CIE-LABlab(33.92, 56.37, -27.87)
CIE-LCHlch(33.92, 62.88, 333.69°)
OKLaboklab(45.46% 0.1648 -0.0763)
OKLCHoklch(45.46% 0.182 335.2)
XYZxyz(15.2266, 7.9717, 20.1348)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A7D #1A8E2B
analogous
#651A8E #8E1A7D #8E1A43
triadic
#8E1A7D #7D8E1A #1A7D8E
tetradic
#8E1A7D #8E651A #1A8E2B #1A438E
square
#8E1A7D #8E651A #1A8E2B #1A438E
split-complementary
#8E1A7D #438E1A #1A8E65
monochromatic
#270722 #5A114F #8E1A7D #C223AB #DD45C7

Accessibility & contrast

On white

8.10
#8E1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1A7D
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1A7D#FFFFFF#000000##FFFFFF
##8E1A7D1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4580
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#95254B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1a7d;
/* rgb */ color: rgb(142, 26, 125);
/* oklch */ color: oklch(45.5% 0.182 335.2);
Tailwind
colors: {
  custom: {
    50: '#b366a3',
    500: '#8e1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a7d;
$custom-light: #b366a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a7d",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 308.793,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45457,
    "c": 0.18161,
    "h": 335.2
  },
  "luminance": 0.0797
}

Semantic roles & 50–950 ramp

primary
#8E1A7D
secondary
#45BE57
accent
#EC563C
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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