#8E217F#8E217F

#8E217F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.176 H 334.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8E217F
RGBrgb(142, 33, 127)
HSLhsl(308, 62%, 34%)
HSVhsv(308, 77%, 56%)
CMYKcmyk(0%, 76.8%, 10.6%, 44.3%)
CIE-LABlab(34.75, 54.61, -27.83)
CIE-LCHlch(34.75, 61.29, 333.00°)
OKLaboklab(46.08% 0.1589 -0.0762)
OKLCHoklch(46.08% 0.176 334.4)
XYZxyz(15.5301, 8.3722, 20.8726)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E217F #218E30
analogous
#67218E #8E217F #8E2149
triadic
#8E217F #7F8E21 #217F8E
tetradic
#8E217F #8E6721 #218E30 #21498E
square
#8E217F #8E6721 #218E30 #21498E
split-complementary
#8E217F #498E21 #218E67
monochromatic
#2B0A26 #5C1553 #8E217F #C02DAB #D752C5

Accessibility & contrast

On white

7.85
#8E217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8E217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E217F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E217F#FFFFFF#000000##FFFFFF
##8E217F1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4882
Deuteranopia (green-blind)
#48577C
Tritanopia (blue-blind)
#952B4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e217f;
/* rgb */ color: rgb(142, 33, 127);
/* oklch */ color: oklch(46.1% 0.176 334.4);
Tailwind
colors: {
  custom: {
    50: '#b369a4',
    500: '#8e217f',
    950: '#000000',
  },
}
SCSS
$custom: #8e217f;
$custom-light: #b369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e217f",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 308.257,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46081,
    "c": 0.17617,
    "h": 334.4
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#8E217F
secondary
#50BA5F
accent
#E55942
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E217F

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

Preview Lab → · Contrast checker → · Palette generator →

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