#8E218A#8E218A

#8E218A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.184 H 329.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8E218A
RGBrgb(142, 33, 138)
HSLhsl(302, 62%, 34%)
HSVhsv(302, 77%, 56%)
CMYKcmyk(0%, 76.8%, 2.8%, 44.3%)
CIE-LABlab(35.35, 56.38, -33.70)
CIE-LCHlch(35.35, 65.68, 329.13°)
OKLaboklab(46.71% 0.1592 -0.0931)
OKLCHoklch(46.71% 0.184 329.7)
XYZxyz(16.2865, 8.6747, 24.8564)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E218A #218E25
analogous
#5C218E #8E218A #8E2154
triadic
#8E218A #8A8E21 #218A8E
tetradic
#8E218A #8E5C21 #218E25 #21548E
square
#8E218A #8E5C21 #218E25 #21548E
split-complementary
#8E218A #548E21 #218E5C
monochromatic
#2B0A29 #5C155A #8E218A #C02DBA #D752D2

Accessibility & contrast

On white

7.68
#8E218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8E218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E218A
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E218A#FFFFFF#000000##FFFFFF
##8E218A1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#425887
Tritanopia (blue-blind)
#933154
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e218a;
/* rgb */ color: rgb(142, 33, 138);
/* oklch */ color: oklch(46.7% 0.184 329.7);
Tailwind
colors: {
  custom: {
    50: '#b369ac',
    500: '#8e218a',
    950: '#000000',
  },
}
SCSS
$custom: #8e218a;
$custom-light: #b369ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e218a",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 302.202,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4671,
    "c": 0.18448,
    "h": 329.7
  },
  "luminance": 0.08673
}

Semantic roles & 50–950 ramp

primary
#8E218A
secondary
#50BA54
accent
#E54842
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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