#8E168C#8E168C

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

Color values

HEX#8E168C
RGBrgb(142, 22, 140)
HSLhsl(301, 73%, 32%)
HSVhsv(301, 85%, 56%)
CMYKcmyk(0%, 84.5%, 1.4%, 44.3%)
CIE-LABlab(34.44, 59.69, -36.39)
CIE-LCHlch(34.44, 69.91, 328.63°)
OKLaboklab(46.1% 0.1677 -0.1009)
OKLCHoklch(46.1% 0.196 329)
XYZxyz(16.1757, 8.2193, 25.5404)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E168C #168E18
analogous
#54168E #8E168C #8E1650
triadic
#8E168C #8C8E16 #168C8E
tetradic
#8E168C #8E5416 #168E18 #16508E
square
#8E168C #8E5416 #168E18 #16508E
split-complementary
#8E168C #508E16 #168E54
monochromatic
#240624 #590E58 #8E168C #C31EC0 #E13DDE

Accessibility & contrast

On white

7.94
#8E168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8E168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E168C
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E168C#FFFFFF#000000##FFFFFF
##8E168C1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3D5689
Tritanopia (blue-blind)
#932C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e168c;
/* rgb */ color: rgb(142, 22, 140);
/* oklch */ color: oklch(46.1% 0.196 329.0);
Tailwind
colors: {
  custom: {
    50: '#b366ae',
    500: '#8e168c',
    950: '#000000',
  },
}
SCSS
$custom: #8e168c;
$custom-light: #b366ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8e168c",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 301,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46097,
    "c": 0.19573,
    "h": 329
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#8E168C
secondary
#3FC141
accent
#F03B38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E168C

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

Preview Lab → · Contrast checker → · Palette generator →

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