#8E218B#8E218B

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

Color values

HEX#8E218B
RGBrgb(142, 33, 139)
HSLhsl(302, 62%, 34%)
HSVhsv(302, 77%, 56%)
CMYKcmyk(0%, 76.8%, 2.1%, 44.3%)
CIE-LABlab(35.41, 56.54, -34.22)
CIE-LCHlch(35.41, 66.09, 328.81°)
OKLaboklab(46.77% 0.1592 -0.0947)
OKLCHoklch(46.77% 0.185 329.3)
XYZxyz(16.3593, 8.7038, 25.2395)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E218B #218E24
analogous
#5B218E #8E218B #8E2155
triadic
#8E218B #8B8E21 #218B8E
tetradic
#8E218B #8E5B21 #218E24 #21558E
square
#8E218B #8E5B21 #218E24 #21558E
split-complementary
#8E218B #558E21 #218E5B
monochromatic
#2B0A2A #5C155A #8E218B #C02DBC #D752D3

Accessibility & contrast

On white

7.66
#8E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8E218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E218B
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E218B#FFFFFF#000000##FFFFFF
##8E218B1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8E
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#933155
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e218b;
/* rgb */ color: rgb(142, 33, 139);
/* oklch */ color: oklch(46.8% 0.185 329.3);
Tailwind
colors: {
  custom: {
    50: '#b369ad',
    500: '#8e218b',
    950: '#000000',
  },
}
SCSS
$custom: #8e218b;
$custom-light: #b369ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e218b",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 301.651,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46769,
    "c": 0.18526,
    "h": 329.3
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#8E218B
secondary
#50BA53
accent
#E54742
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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