#8E168D#8E168D

#8E168D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.2% C 0.196 H 328.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#8E168D
RGBrgb(142, 22, 141)
HSLhsl(301, 73%, 32%)
HSVhsv(301, 85%, 56%)
CMYKcmyk(0%, 84.5%, 0.7%, 44.3%)
CIE-LABlab(34.50, 59.85, -36.91)
CIE-LCHlch(34.50, 70.31, 328.34°)
OKLaboklab(46.16% 0.1677 -0.1024)
OKLCHoklch(46.16% 0.196 328.6)
XYZxyz(16.2498, 8.2490, 25.9305)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E168D #168E17
analogous
#53168E #8E168D #8E1651
triadic
#8E168D #8D8E16 #168D8E
tetradic
#8E168D #8E5316 #168E17 #16518E
square
#8E168D #8E5316 #168E17 #16518E
split-complementary
#8E168D #518E16 #168E53
monochromatic
#240624 #590E58 #8E168D #C31EC2 #E13DE0

Accessibility & contrast

On white

7.93
#8E168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8E168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E168D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E168D#FFFFFF#000000##FFFFFF
##8E168D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#3C568A
Tritanopia (blue-blind)
#932C54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e168d;
/* rgb */ color: rgb(142, 22, 141);
/* oklch */ color: oklch(46.2% 0.196 328.6);
Tailwind
colors: {
  custom: {
    50: '#b366af',
    500: '#8e168d',
    950: '#000000',
  },
}
SCSS
$custom: #8e168d;
$custom-light: #b366af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e168d",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 300.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46159,
    "c": 0.19647,
    "h": 328.6
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#8E168D
secondary
#3FC140
accent
#F03938
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E168D

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

Preview Lab → · Contrast checker → · Palette generator →

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