#8E117B#8E117B

#8E117B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.187 H 335.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#8E117B
RGBrgb(142, 17, 123)
HSLhsl(309, 79%, 31%)
HSVhsv(309, 88%, 56%)
CMYKcmyk(0%, 88%, 13.4%, 44.3%)
CIE-LABlab(33.10, 58.15, -27.91)
CIE-LCHlch(33.10, 64.50, 334.36°)
OKLaboklab(44.83% 0.1709 -0.0763)
OKLCHoklch(44.83% 0.187 335.9)
XYZxyz(14.9312, 7.5832, 19.4124)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E117B #118E24
analogous
#62118E #8E117B #8E113C
triadic
#8E117B #7B8E11 #117B8E
tetradic
#8E117B #8E6211 #118E24 #113C8E
square
#8E117B #8E6211 #118E24 #113C8E
split-complementary
#8E117B #3C8E11 #118E62
monochromatic
#21041C #570A4C #8E117B #C518AA #E733CB

Accessibility & contrast

On white

8.35
#8E117B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8E117B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E117B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E117B#FFFFFF#000000##FFFFFF
##8E117B1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427E
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#961E48
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e117b;
/* rgb */ color: rgb(142, 17, 123);
/* oklch */ color: oklch(44.8% 0.187 335.9);
Tailwind
colors: {
  custom: {
    50: '#b364a1',
    500: '#8e117b',
    950: '#000000',
  },
}
SCSS
$custom: #8e117b;
$custom-light: #b364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e117b",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 123
  },
  "hsl": {
    "h": 309.12,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44833,
    "c": 0.18718,
    "h": 335.9
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

primary
#8E117B
secondary
#38C24D
accent
#F55033
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060F
muted
#817A7E

Preview Lab

Preview with #8E117B

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

Preview Lab → · Contrast checker → · Palette generator →

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