#8E218C#8E218C

#8E218C is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.186 H 328.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8E218C
RGBrgb(142, 33, 140)
HSLhsl(301, 62%, 34%)
HSVhsv(301, 77%, 56%)
CMYKcmyk(0%, 76.8%, 1.4%, 44.3%)
CIE-LABlab(35.47, 56.71, -34.75)
CIE-LCHlch(35.47, 66.51, 328.50°)
OKLaboklab(46.83% 0.1592 -0.0962)
OKLCHoklch(46.83% 0.186 328.9)
XYZxyz(16.4327, 8.7332, 25.6260)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E218C #218E23
analogous
#5A218E #8E218C #8E2156
triadic
#8E218C #8C8E21 #218C8E
tetradic
#8E218C #8E5A21 #218E23 #21568E
square
#8E218C #8E5A21 #218E23 #21568E
split-complementary
#8E218C #568E21 #218E5A
monochromatic
#2B0A2A #5C155B #8E218C #C02DBD #D752D4

Accessibility & contrast

On white

7.65
#8E218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8E218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E218C
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E218C#FFFFFF#000000##FFFFFF
##8E218C1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8F
Deuteranopia (green-blind)
#415889
Tritanopia (blue-blind)
#933255
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e218c;
/* rgb */ color: rgb(142, 33, 140);
/* oklch */ color: oklch(46.8% 0.186 328.9);
Tailwind
colors: {
  custom: {
    50: '#b369ae',
    500: '#8e218c',
    950: '#000000',
  },
}
SCSS
$custom: #8e218c;
$custom-light: #b369ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8e218c",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 301.101,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46829,
    "c": 0.18603,
    "h": 328.9
  },
  "luminance": 0.08732
}

Semantic roles & 50–950 ramp

primary
#8E218C
secondary
#50BA52
accent
#E54542
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E218C

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

Preview Lab → · Contrast checker → · Palette generator →

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