#8E1A7F#8E1A7F

#8E1A7F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.183 H 334.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8E1A7F
RGBrgb(142, 26, 127)
HSLhsl(308, 69%, 33%)
HSVhsv(308, 82%, 56%)
CMYKcmyk(0%, 81.7%, 10.6%, 44.3%)
CIE-LABlab(34.03, 56.67, -28.95)
CIE-LCHlch(34.03, 63.64, 332.94°)
OKLaboklab(45.57% 0.1649 -0.0794)
OKLCHoklch(45.57% 0.183 334.3)
XYZxyz(15.3557, 8.0233, 20.8145)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A7F #1A8E29
analogous
#631A8E #8E1A7F #8E1A45
triadic
#8E1A7F #7F8E1A #1A7F8E
tetradic
#8E1A7F #8E631A #1A8E29 #1A458E
square
#8E1A7F #8E631A #1A8E29 #1A458E
split-complementary
#8E1A7F #458E1A #1A8E63
monochromatic
#270722 #5A1151 #8E1A7F #C223AD #DD45C9

Accessibility & contrast

On white

8.06
#8E1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8E1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1A7F
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1A7F#FFFFFF#000000##FFFFFF
##8E1A7F1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174582
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#95264C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1a7f;
/* rgb */ color: rgb(142, 26, 127);
/* oklch */ color: oklch(45.6% 0.183 334.3);
Tailwind
colors: {
  custom: {
    50: '#b366a4',
    500: '#8e1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a7f;
$custom-light: #b366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a7f",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 307.759,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.18302,
    "h": 334.3
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

primary
#8E1A7F
secondary
#45BE55
accent
#EC533C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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