#8E167C#8E167C

#8E167C is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.184 H 335.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8E167C
RGBrgb(142, 22, 124)
HSLhsl(309, 73%, 32%)
HSVhsv(309, 85%, 56%)
CMYKcmyk(0%, 84.5%, 12.7%, 44.3%)
CIE-LABlab(33.52, 57.22, -27.87)
CIE-LCHlch(33.52, 63.65, 334.03°)
OKLaboklab(45.15% 0.1678 -0.0762)
OKLCHoklch(45.15% 0.184 335.6)
XYZxyz(15.0806, 7.7813, 19.7726)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E167C #168E28
analogous
#64168E #8E167C #8E1640
triadic
#8E167C #7C8E16 #167C8E
tetradic
#8E167C #8E6416 #168E28 #16408E
square
#8E167C #8E6416 #168E28 #16408E
split-complementary
#8E167C #408E16 #168E64
monochromatic
#24061F #590E4E #8E167C #C31EAA #E13DC8

Accessibility & contrast

On white

8.22
#8E167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8E167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E167C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E167C#FFFFFF#000000##FFFFFF
##8E167C1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447F
Deuteranopia (green-blind)
#455579
Tritanopia (blue-blind)
#96224A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e167c;
/* rgb */ color: rgb(142, 22, 124);
/* oklch */ color: oklch(45.2% 0.184 335.6);
Tailwind
colors: {
  custom: {
    50: '#b365a2',
    500: '#8e167c',
    950: '#000000',
  },
}
SCSS
$custom: #8e167c;
$custom-light: #b365a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e167c",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 309,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45153,
    "c": 0.18426,
    "h": 335.6
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#8E167C
secondary
#3FC152
accent
#F05438
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E167C

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

Preview Lab → · Contrast checker → · Palette generator →

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