#8E167B#8E167B

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

Color values

HEX#8E167B
RGBrgb(142, 22, 123)
HSLhsl(310, 73%, 32%)
HSVhsv(310, 85%, 56%)
CMYKcmyk(0%, 84.5%, 13.4%, 44.3%)
CIE-LABlab(33.47, 57.08, -27.33)
CIE-LCHlch(33.47, 63.28, 334.42°)
OKLaboklab(45.1% 0.1677 -0.0747)
OKLCHoklch(45.1% 0.184 336)
XYZxyz(15.0177, 7.7561, 19.4412)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E167B #168E29
analogous
#65168E #8E167B #8E163F
triadic
#8E167B #7B8E16 #167B8E
tetradic
#8E167B #8E6516 #168E29 #163F8E
square
#8E167B #8E6516 #168E29 #163F8E
split-complementary
#8E167B #3F8E16 #168E65
monochromatic
#24061F #590E4D #8E167B #C31EA9 #E13DC7

Accessibility & contrast

On white

8.23
#8E167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8E167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E167B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E167B#FFFFFF#000000##FFFFFF
##8E167B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437E
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#962149
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e167b;
/* rgb */ color: rgb(142, 22, 123);
/* oklch */ color: oklch(45.1% 0.184 336.0);
Tailwind
colors: {
  custom: {
    50: '#b365a1',
    500: '#8e167b',
    950: '#000000',
  },
}
SCSS
$custom: #8e167b;
$custom-light: #b365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e167b",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 309.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45098,
    "c": 0.18358,
    "h": 336
  },
  "luminance": 0.07755
}

Semantic roles & 50–950 ramp

primary
#8E167B
secondary
#3FC153
accent
#F05538
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8E167B

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

Preview Lab → · Contrast checker → · Palette generator →

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