#8E1C8A#8E1C8A

#8E1C8A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.189 H 329.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8E1C8A
RGBrgb(142, 28, 138)
HSLhsl(302, 67%, 33%)
HSVhsv(302, 80%, 56%)
CMYKcmyk(0%, 80.3%, 2.8%, 44.3%)
CIE-LABlab(34.84, 57.85, -34.51)
CIE-LCHlch(34.84, 67.37, 329.18°)
OKLaboklab(46.34% 0.1635 -0.0955)
OKLCHoklch(46.34% 0.189 329.7)
XYZxyz(16.1579, 8.4175, 24.8136)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1C8A #1C8E20
analogous
#591C8E #8E1C8A #8E1C51
triadic
#8E1C8A #8A8E1C #1C8A8E
tetradic
#8E1C8A #8E591C #1C8E20 #1C518E
square
#8E1C8A #8E591C #1C8E20 #1C518E
split-complementary
#8E1C8A #518E1C #1C8E59
monochromatic
#280827 #5B1258 #8E1C8A #C126BC #DB49D6

Accessibility & contrast

On white

7.83
#8E1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8E1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1C8A
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1C8A#FFFFFF#000000##FFFFFF
##8E1C8A1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04488D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#932E53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e1c8a;
/* rgb */ color: rgb(142, 28, 138);
/* oklch */ color: oklch(46.3% 0.189 329.7);
Tailwind
colors: {
  custom: {
    50: '#b367ac',
    500: '#8e1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1c8a;
$custom-light: #b367ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1c8a",
  "rgb": {
    "r": 142,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 302.105,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.46344,
    "c": 0.18931,
    "h": 329.7
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#8E1C8A
secondary
#49BD4D
accent
#EA443E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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