#8E167D#8E167D

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

Color values

HEX#8E167D
RGBrgb(142, 22, 125)
HSLhsl(309, 73%, 32%)
HSVhsv(309, 85%, 56%)
CMYKcmyk(0%, 84.5%, 12%, 44.3%)
CIE-LABlab(33.58, 57.37, -28.41)
CIE-LCHlch(33.58, 64.02, 333.65°)
OKLaboklab(45.21% 0.1678 -0.0778)
OKLCHoklch(45.21% 0.185 335.1)
XYZxyz(15.1441, 7.8067, 20.1073)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E167D #168E27
analogous
#63168E #8E167D #8E1641
triadic
#8E167D #7D8E16 #167D8E
tetradic
#8E167D #8E6316 #168E27 #16418E
square
#8E167D #8E6316 #168E27 #16418E
split-complementary
#8E167D #418E16 #168E63
monochromatic
#240620 #590E4E #8E167D #C31EAC #E13DCA

Accessibility & contrast

On white

8.20
#8E167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E167D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E167D#FFFFFF#000000##FFFFFF
##8E167D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#95234A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e167d;
/* rgb */ color: rgb(142, 22, 125);
/* oklch */ color: oklch(45.2% 0.185 335.1);
Tailwind
colors: {
  custom: {
    50: '#b365a3',
    500: '#8e167d',
    950: '#000000',
  },
}
SCSS
$custom: #8e167d;
$custom-light: #b365a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e167d",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 308.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45209,
    "c": 0.18496,
    "h": 335.1
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

primary
#8E167D
secondary
#3FC151
accent
#F05238
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E167D

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

Preview Lab → · Contrast checker → · Palette generator →

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