#8E168A#8E168A

#8E168A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.194 H 329.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8E168A
RGBrgb(142, 22, 138)
HSLhsl(302, 73%, 32%)
HSVhsv(302, 85%, 56%)
CMYKcmyk(0%, 84.5%, 2.8%, 44.3%)
CIE-LABlab(34.32, 59.37, -35.34)
CIE-LCHlch(34.32, 69.09, 329.24°)
OKLaboklab(45.97% 0.1678 -0.0979)
OKLCHoklch(45.97% 0.194 329.8)
XYZxyz(16.0296, 8.1609, 24.7708)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E168A #168E1A
analogous
#56168E #8E168A #8E164E
triadic
#8E168A #8A8E16 #168A8E
tetradic
#8E168A #8E5616 #168E1A #164E8E
square
#8E168A #8E5616 #168E1A #164E8E
split-complementary
#8E168A #4E8E16 #168E56
monochromatic
#240623 #590E57 #8E168A #C31EBD #E13DDC

Accessibility & contrast

On white

7.98
#8E168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E168A
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E168A#FFFFFF#000000##FFFFFF
##8E168A1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#932B52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e168a;
/* rgb */ color: rgb(142, 22, 138);
/* oklch */ color: oklch(46.0% 0.194 329.8);
Tailwind
colors: {
  custom: {
    50: '#b366ac',
    500: '#8e168a',
    950: '#000000',
  },
}
SCSS
$custom: #8e168a;
$custom-light: #b366ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e168a",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 302,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45973,
    "c": 0.19425,
    "h": 329.8
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#8E168A
secondary
#3FC143
accent
#F03E38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E168A

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

Preview Lab → · Contrast checker → · Palette generator →

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