#8E117E#8E117E

#8E117E is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.189 H 334.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#8E117E
RGBrgb(142, 17, 126)
HSLhsl(308, 79%, 31%)
HSVhsv(308, 88%, 56%)
CMYKcmyk(0%, 88%, 11.3%, 44.3%)
CIE-LABlab(33.26, 58.59, -29.54)
CIE-LCHlch(33.26, 65.61, 333.25°)
OKLaboklab(45% 0.171 -0.081)
OKLCHoklch(45% 0.189 334.7)
XYZxyz(15.1219, 7.6595, 20.4166)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E117E #118E21
analogous
#5F118E #8E117E #8E113F
triadic
#8E117E #7E8E11 #117E8E
tetradic
#8E117E #8E5F11 #118E21 #113F8E
square
#8E117E #8E5F11 #118E21 #113F8E
split-complementary
#8E117E #3F8E11 #118E5F
monochromatic
#21041D #570A4D #8E117E #C518AE #E733D0

Accessibility & contrast

On white

8.30
#8E117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8E117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E117E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E117E#FFFFFF#000000##FFFFFF
##8E117E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4381
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#95204A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e117e;
/* rgb */ color: rgb(142, 17, 126);
/* oklch */ color: oklch(45.0% 0.189 334.7);
Tailwind
colors: {
  custom: {
    50: '#b364a4',
    500: '#8e117e',
    950: '#000000',
  },
}
SCSS
$custom: #8e117e;
$custom-light: #b364a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e117e",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 307.68,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.45003,
    "c": 0.18923,
    "h": 334.7
  },
  "luminance": 0.07658
}

Semantic roles & 50–950 ramp

primary
#8E117E
secondary
#38C24A
accent
#F54C33
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8E117E

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

Preview Lab → · Contrast checker → · Palette generator →

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