#8E2186#8E2186

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

Color values

HEX#8E2186
RGBrgb(142, 33, 134)
HSLhsl(304, 62%, 34%)
HSVhsv(304, 77%, 56%)
CMYKcmyk(0%, 76.8%, 5.6%, 44.3%)
CIE-LABlab(35.12, 55.72, -31.58)
CIE-LCHlch(35.12, 64.05, 330.46°)
OKLaboklab(46.48% 0.1592 -0.087)
OKLCHoklch(46.48% 0.181 331.3)
XYZxyz(16.0023, 8.5610, 23.3593)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2186 #218E29
analogous
#60218E #8E2186 #8E214F
triadic
#8E2186 #868E21 #21868E
tetradic
#8E2186 #8E6021 #218E29 #214F8E
square
#8E2186 #8E6021 #218E29 #214F8E
split-complementary
#8E2186 #4F8E21 #218E60
monochromatic
#2B0A28 #5C1557 #8E2186 #C02DB5 #D752CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2186#FFFFFF#000000##FFFFFF
##8E21861.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)
#174989
Deuteranopia (green-blind)
#445883
Tritanopia (blue-blind)
#942F52
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e2186;
/* rgb */ color: rgb(142, 33, 134);
/* oklch */ color: oklch(46.5% 0.181 331.3);
Tailwind
colors: {
  custom: {
    50: '#b369a9',
    500: '#8e2186',
    950: '#000000',
  },
}
SCSS
$custom: #8e2186;
$custom-light: #b369a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2186",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 304.404,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46476,
    "c": 0.18141,
    "h": 331.3
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#8E2186
secondary
#50BA58
accent
#E54E42
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2186

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

Preview Lab → · Contrast checker → · Palette generator →

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