#8E1F8A#8E1F8A

#8E1F8A is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.186 H 329.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8E1F8A
RGBrgb(142, 31, 138)
HSLhsl(302, 64%, 34%)
HSVhsv(302, 78%, 56%)
CMYKcmyk(0%, 78.2%, 2.8%, 44.3%)
CIE-LABlab(35.14, 56.99, -34.04)
CIE-LCHlch(35.14, 66.38, 329.15°)
OKLaboklab(46.56% 0.161 -0.0941)
OKLCHoklch(46.56% 0.186 329.7)
XYZxyz(16.2327, 8.5670, 24.8385)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F8A #1F8E23
analogous
#5B1F8E #8E1F8A #8E1F53
triadic
#8E1F8A #8A8E1F #1F8A8E
tetradic
#8E1F8A #8E5B1F #1F8E23 #1F538E
square
#8E1F8A #8E5B1F #1F8E23 #1F538E
split-complementary
#8E1F8A #538E1F #1F8E5B
monochromatic
#2A0928 #5C1459 #8E1F8A #C02ABB #D94FD4

Accessibility & contrast

On white

7.74
#8E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8E1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F8A
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F8A#FFFFFF#000000##FFFFFF
##8E1F8A1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#415887
Tritanopia (blue-blind)
#933054
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e1f8a;
/* rgb */ color: rgb(142, 31, 138);
/* oklch */ color: oklch(46.6% 0.186 329.7);
Tailwind
colors: {
  custom: {
    50: '#b368ac',
    500: '#8e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f8a;
$custom-light: #b368ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f8a",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 302.162,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46557,
    "c": 0.18649,
    "h": 329.7
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#8E1F8A
secondary
#4DBB51
accent
#E74741
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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