#8E217D#8E217D

#8E217D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.175 H 335.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8E217D
RGBrgb(142, 33, 125)
HSLhsl(309, 62%, 34%)
HSVhsv(309, 77%, 56%)
CMYKcmyk(0%, 76.8%, 12%, 44.3%)
CIE-LABlab(34.64, 54.30, -26.74)
CIE-LCHlch(34.64, 60.53, 333.78°)
OKLaboklab(45.97% 0.1587 -0.0731)
OKLCHoklch(45.97% 0.175 335.3)
XYZxyz(15.4011, 8.3206, 20.1930)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E217D #218E32
analogous
#69218E #8E217D #8E2147
triadic
#8E217D #7D8E21 #217D8E
tetradic
#8E217D #8E6921 #218E32 #21478E
square
#8E217D #8E6921 #218E32 #21478E
split-complementary
#8E217D #478E21 #218E69
monochromatic
#2B0A26 #5C1551 #8E217D #C02DA9 #D752C2

Accessibility & contrast

On white

7.88
#8E217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8E217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E217D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E217D#FFFFFF#000000##FFFFFF
##8E217D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#952A4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e217d;
/* rgb */ color: rgb(142, 33, 125);
/* oklch */ color: oklch(46.0% 0.175 335.3);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8e217d',
    950: '#000000',
  },
}
SCSS
$custom: #8e217d;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e217d",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 309.358,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.17471,
    "h": 335.3
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#8E217D
secondary
#50BA61
accent
#E55C42
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E217D

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

Preview Lab → · Contrast checker → · Palette generator →

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