#8E168F#8E168F

#8E168F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.198 H 327.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8E168F
RGBrgb(142, 22, 143)
HSLhsl(300, 73%, 32%)
HSVhsv(300, 85%, 56%)
CMYKcmyk(0.7%, 84.6%, 0%, 43.9%)
CIE-LABlab(34.62, 60.18, -37.94)
CIE-LCHlch(34.62, 71.14, 327.77°)
OKLaboklab(46.29% 0.1675 -0.1054)
OKLCHoklch(46.29% 0.198 327.8)
XYZxyz(16.4000, 8.3090, 26.7213)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E168F #178F16
analogous
#51168F #8E168F #8F1654
triadic
#8E168F #8F8E16 #168F8E
tetradic
#8E168F #8F5116 #178F16 #16548F
square
#8E168F #8F5116 #178F16 #16548F
split-complementary
#8E168F #548F16 #168F51
monochromatic
#250625 #590E5A #8E168F #C31EC4 #E03EE1

Accessibility & contrast

On white

7.89
#8E168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8E168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E168F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E168F#FFFFFF#000000##FFFFFF
##8E168F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#3B578C
Tritanopia (blue-blind)
#932E55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e168f;
/* rgb */ color: rgb(142, 22, 143);
/* oklch */ color: oklch(46.3% 0.198 327.8);
Tailwind
colors: {
  custom: {
    50: '#b366b0',
    500: '#8e168f',
    950: '#000000',
  },
}
SCSS
$custom: #8e168f;
$custom-light: #b366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e168f",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 299.504,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.46285,
    "c": 0.19795,
    "h": 327.8
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#8E168F
secondary
#40C13F
accent
#F03839
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E168F

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

Preview Lab → · Contrast checker → · Palette generator →

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