#8E118C#8E118C

#8E118C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.199 H 329.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8E118C
RGBrgb(142, 17, 140)
HSLhsl(301, 79%, 31%)
HSVhsv(301, 88%, 56%)
CMYKcmyk(0%, 88%, 1.4%, 44.3%)
CIE-LABlab(34.08, 60.73, -36.95)
CIE-LCHlch(34.08, 71.09, 328.68°)
OKLaboklab(45.85% 0.1707 -0.1025)
OKLCHoklch(45.85% 0.199 329)
XYZxyz(16.0893, 8.0464, 25.5116)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E118C #118E13
analogous
#51118E #8E118C #8E114D
triadic
#8E118C #8C8E11 #118C8E
tetradic
#8E118C #8E5111 #118E13 #114D8E
square
#8E118C #8E5111 #118E13 #114D8E
split-complementary
#8E118C #4D8E11 #118E51
monochromatic
#210420 #570A56 #8E118C #C518C2 #E733E4

Accessibility & contrast

On white

8.05
#8E118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E118C
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E118C#FFFFFF#000000##FFFFFF
##8E118C1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#3B5689
Tritanopia (blue-blind)
#932A52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e118c;
/* rgb */ color: rgb(142, 17, 140);
/* oklch */ color: oklch(45.8% 0.199 329.0);
Tailwind
colors: {
  custom: {
    50: '#b364ae',
    500: '#8e118c',
    950: '#000000',
  },
}
SCSS
$custom: #8e118c;
$custom-light: #b364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8e118c",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 300.96,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.1991,
    "h": 329
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#8E118C
secondary
#38C23B
accent
#F53633
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120610
muted
#817A7F

Preview Lab

Preview with #8E118C

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

Preview Lab → · Contrast checker → · Palette generator →

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