#8E2187#8E2187

#8E2187 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.182 H 330.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8E2187
RGBrgb(142, 33, 135)
HSLhsl(304, 62%, 34%)
HSVhsv(304, 77%, 56%)
CMYKcmyk(0%, 76.8%, 4.9%, 44.3%)
CIE-LABlab(35.18, 55.89, -32.11)
CIE-LCHlch(35.18, 64.45, 330.12°)
OKLaboklab(46.53% 0.1592 -0.0885)
OKLCHoklch(46.53% 0.182 330.9)
XYZxyz(16.0723, 8.5891, 23.7283)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2187 #218E28
analogous
#5F218E #8E2187 #8E2151
triadic
#8E2187 #878E21 #21878E
tetradic
#8E2187 #8E5F21 #218E28 #21518E
square
#8E2187 #8E5F21 #218E28 #21518E
split-complementary
#8E2187 #518E21 #218E5F
monochromatic
#2B0A29 #5C1558 #8E2187 #C02DB6 #D752CE

Accessibility & contrast

On white

7.73
#8E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2187
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2187#FFFFFF#000000##FFFFFF
##8E21871.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#445884
Tritanopia (blue-blind)
#942F52
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e2187;
/* rgb */ color: rgb(142, 33, 135);
/* oklch */ color: oklch(46.5% 0.182 330.9);
Tailwind
colors: {
  custom: {
    50: '#b369aa',
    500: '#8e2187',
    950: '#000000',
  },
}
SCSS
$custom: #8e2187;
$custom-light: #b369aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2187",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 303.853,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46534,
    "c": 0.18218,
    "h": 330.9
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

primary
#8E2187
secondary
#50BA57
accent
#E54D42
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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