#8E168B#8E168B

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

Color values

HEX#8E168B
RGBrgb(142, 22, 139)
HSLhsl(302, 73%, 32%)
HSVhsv(302, 85%, 56%)
CMYKcmyk(0%, 84.5%, 2.1%, 44.3%)
CIE-LABlab(34.38, 59.53, -35.86)
CIE-LCHlch(34.38, 69.50, 328.93°)
OKLaboklab(46.04% 0.1678 -0.0994)
OKLCHoklch(46.04% 0.195 329.4)
XYZxyz(16.1023, 8.1900, 25.1538)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E168B #168E19
analogous
#55168E #8E168B #8E164F
triadic
#8E168B #8B8E16 #168B8E
tetradic
#8E168B #8E5516 #168E19 #164F8E
square
#8E168B #8E5516 #168E19 #164F8E
split-complementary
#8E168B #4F8E16 #168E55
monochromatic
#240623 #590E57 #8E168B #C31EBF #E13DDD

Accessibility & contrast

On white

7.96
#8E168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E168B
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E168B#FFFFFF#000000##FFFFFF
##8E168B1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e168b;
/* rgb */ color: rgb(142, 22, 139);
/* oklch */ color: oklch(46.0% 0.195 329.4);
Tailwind
colors: {
  custom: {
    50: '#b366ad',
    500: '#8e168b',
    950: '#000000',
  },
}
SCSS
$custom: #8e168b;
$custom-light: #b366ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e168b",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 301.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46035,
    "c": 0.19499,
    "h": 329.4
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

primary
#8E168B
secondary
#3FC142
accent
#F03D38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E168B

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

Preview Lab → · Contrast checker → · Palette generator →

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