#8E177E#8E177E

#8E177E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.185 H 334.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8E177E
RGBrgb(142, 23, 126)
HSLhsl(308, 72%, 32%)
HSVhsv(308, 84%, 56%)
CMYKcmyk(0%, 83.8%, 11.3%, 44.3%)
CIE-LABlab(33.71, 57.28, -28.83)
CIE-LCHlch(33.71, 64.13, 333.29°)
OKLaboklab(45.32% 0.1671 -0.079)
OKLCHoklch(45.32% 0.185 334.7)
XYZxyz(15.2278, 7.8713, 20.4520)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E177E #178E27
analogous
#62178E #8E177E #8E1743
triadic
#8E177E #7E8E17 #177E8E
tetradic
#8E177E #8E6217 #178E27 #17438E
square
#8E177E #8E6217 #178E27 #17438E
split-complementary
#8E177E #438E17 #178E62
monochromatic
#250621 #590E4F #8E177E #C320AD #E03FCA

Accessibility & contrast

On white

8.16
#8E177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8E177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E177E
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E177E#FFFFFF#000000##FFFFFF
##8E177E1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#95244B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e177e;
/* rgb */ color: rgb(142, 23, 126);
/* oklch */ color: oklch(45.3% 0.185 334.7);
Tailwind
colors: {
  custom: {
    50: '#b365a4',
    500: '#8e177e',
    950: '#000000',
  },
}
SCSS
$custom: #8e177e;
$custom-light: #b365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e177e",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 308.067,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45324,
    "c": 0.18486,
    "h": 334.7
  },
  "luminance": 0.0787
}

Semantic roles & 50–950 ramp

primary
#8E177E
secondary
#40C052
accent
#EF5139
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E177E

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

Preview Lab → · Contrast checker → · Palette generator →

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