#8E118B#8E118B

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

Color values

HEX#8E118B
RGBrgb(142, 17, 139)
HSLhsl(301, 79%, 31%)
HSVhsv(301, 88%, 56%)
CMYKcmyk(0%, 88%, 2.1%, 44.3%)
CIE-LABlab(34.02, 60.57, -36.43)
CIE-LCHlch(34.02, 70.68, 328.97°)
OKLaboklab(45.78% 0.1708 -0.101)
OKLCHoklch(45.78% 0.198 329.4)
XYZxyz(16.0159, 8.0171, 25.1250)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E118B #118E14
analogous
#52118E #8E118B #8E114C
triadic
#8E118B #8B8E11 #118B8E
tetradic
#8E118B #8E5211 #118E14 #114C8E
square
#8E118B #8E5211 #118E14 #114C8E
split-complementary
#8E118B #4C8E11 #118E52
monochromatic
#210420 #570A55 #8E118B #C518C0 #E733E2

Accessibility & contrast

On white

8.07
#8E118B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8E118B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E118B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E118B#FFFFFF#000000##FFFFFF
##8E118B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#932952
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e118b;
/* rgb */ color: rgb(142, 17, 139);
/* oklch */ color: oklch(45.8% 0.198 329.4);
Tailwind
colors: {
  custom: {
    50: '#b364ad',
    500: '#8e118b',
    950: '#000000',
  },
}
SCSS
$custom: #8e118b;
$custom-light: #b364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e118b",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 139
  },
  "hsl": {
    "h": 301.44,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.45782,
    "c": 0.19838,
    "h": 329.4
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#8E118B
secondary
#38C23C
accent
#F53733
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120610
muted
#817A7F

Preview Lab

Preview with #8E118B

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

Preview Lab → · Contrast checker → · Palette generator →

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