#8E217E#8E217E

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

Color values

HEX#8E217E
RGBrgb(142, 33, 126)
HSLhsl(309, 62%, 34%)
HSVhsv(309, 77%, 56%)
CMYKcmyk(0%, 76.8%, 11.3%, 44.3%)
CIE-LABlab(34.69, 54.46, -27.28)
CIE-LCHlch(34.69, 60.91, 333.39°)
OKLaboklab(46.03% 0.1588 -0.0746)
OKLCHoklch(46.03% 0.175 334.8)
XYZxyz(15.4653, 8.3462, 20.5311)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E217E #218E31
analogous
#68218E #8E217E #8E2148
triadic
#8E217E #7E8E21 #217E8E
tetradic
#8E217E #8E6821 #218E31 #21488E
square
#8E217E #8E6821 #218E31 #21488E
split-complementary
#8E217E #488E21 #218E68
monochromatic
#2B0A26 #5C1552 #8E217E #C02DAA #D752C3

Accessibility & contrast

On white

7.87
#8E217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E217E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E217E#FFFFFF#000000##FFFFFF
##8E217E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204781
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#952B4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e217e;
/* rgb */ color: rgb(142, 33, 126);
/* oklch */ color: oklch(46.0% 0.175 334.8);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8e217e',
    950: '#000000',
  },
}
SCSS
$custom: #8e217e;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e217e",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 308.807,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46027,
    "c": 0.17544,
    "h": 334.8
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#8E217E
secondary
#50BA60
accent
#E55A42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E217E

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

Preview Lab → · Contrast checker → · Palette generator →

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