#8E117D#8E117D

#8E117D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.189 H 335.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8E117D
RGBrgb(142, 17, 125)
HSLhsl(308, 79%, 31%)
HSVhsv(308, 88%, 56%)
CMYKcmyk(0%, 88%, 12%, 44.3%)
CIE-LABlab(33.21, 58.44, -29.00)
CIE-LCHlch(33.21, 65.24, 333.61°)
OKLaboklab(44.95% 0.171 -0.0795)
OKLCHoklch(44.95% 0.189 335.1)
XYZxyz(15.0577, 7.6338, 20.0785)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E117D #118E22
analogous
#60118E #8E117D #8E113E
triadic
#8E117D #7D8E11 #117D8E
tetradic
#8E117D #8E6011 #118E22 #113E8E
square
#8E117D #8E6011 #118E22 #113E8E
split-complementary
#8E117D #3E8E11 #118E60
monochromatic
#21041D #570A4D #8E117D #C518AD #E733CE

Accessibility & contrast

On white

8.31
#8E117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E117D
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E117D#FFFFFF#000000##FFFFFF
##8E117D1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104380
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#952049
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e117d;
/* rgb */ color: rgb(142, 17, 125);
/* oklch */ color: oklch(44.9% 0.189 335.1);
Tailwind
colors: {
  custom: {
    50: '#b364a3',
    500: '#8e117d',
    950: '#000000',
  },
}
SCSS
$custom: #8e117d;
$custom-light: #b364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e117d",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 308.16,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44946,
    "c": 0.18854,
    "h": 335.1
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#8E117D
secondary
#38C24B
accent
#F54D33
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8E117D

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

Preview Lab → · Contrast checker → · Palette generator →

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