#8E187F#8E187F

#8E187F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.185 H 334.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8E187F
RGBrgb(142, 24, 127)
HSLhsl(308, 71%, 33%)
HSVhsv(308, 83%, 56%)
CMYKcmyk(0%, 83.1%, 10.6%, 44.3%)
CIE-LABlab(33.85, 57.18, -29.23)
CIE-LCHlch(33.85, 64.22, 332.92°)
OKLaboklab(45.44% 0.1664 -0.0802)
OKLCHoklch(45.44% 0.185 334.3)
XYZxyz(15.3129, 7.9378, 20.8002)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E187F #188E27
analogous
#62188E #8E187F #8E1844
triadic
#8E187F #7F8E18 #187F8E
tetradic
#8E187F #8E6218 #188E27 #18448E
square
#8E187F #8E6218 #188E27 #18448E
split-complementary
#8E187F #448E18 #188E62
monochromatic
#250621 #5A0F50 #8E187F #C221AE #DF41CB

Accessibility & contrast

On white

8.12
#8E187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E187F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E187F#FFFFFF#000000##FFFFFF
##8E187F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154582
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#95254C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e187f;
/* rgb */ color: rgb(142, 24, 127);
/* oklch */ color: oklch(45.4% 0.185 334.3);
Tailwind
colors: {
  custom: {
    50: '#b366a4',
    500: '#8e187f',
    950: '#000000',
  },
}
SCSS
$custom: #8e187f;
$custom-light: #b366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e187f",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 307.627,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45441,
    "c": 0.18474,
    "h": 334.3
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#8E187F
secondary
#42C052
accent
#EE513A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E187F

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

Preview Lab → · Contrast checker → · Palette generator →

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