#8E187B#8E187B

#8E187B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.182 H 336.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8E187B
RGBrgb(142, 24, 123)
HSLhsl(310, 71%, 33%)
HSVhsv(310, 83%, 56%)
CMYKcmyk(0%, 83.1%, 13.4%, 44.3%)
CIE-LABlab(33.64, 56.59, -27.06)
CIE-LCHlch(33.64, 62.73, 334.44°)
OKLaboklab(45.22% 0.1663 -0.0739)
OKLCHoklch(45.22% 0.182 336)
XYZxyz(15.0574, 7.8355, 19.4545)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E187B #188E2B
analogous
#66188E #8E187B #8E1840
triadic
#8E187B #7B8E18 #187B8E
tetradic
#8E187B #8E6618 #188E2B #18408E
square
#8E187B #8E6618 #188E2B #18408E
split-complementary
#8E187B #408E18 #188E66
monochromatic
#250620 #5A0F4E #8E187B #C221A8 #DF41C6

Accessibility & contrast

On white

8.18
#8E187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8E187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E187B
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E187B#FFFFFF#000000##FFFFFF
##8E187B1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447E
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#96234A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e187b;
/* rgb */ color: rgb(142, 24, 123);
/* oklch */ color: oklch(45.2% 0.182 336.0);
Tailwind
colors: {
  custom: {
    50: '#b365a1',
    500: '#8e187b',
    950: '#000000',
  },
}
SCSS
$custom: #8e187b;
$custom-light: #b365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e187b",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 309.661,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45218,
    "c": 0.18195,
    "h": 336
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#8E187B
secondary
#42C056
accent
#EE573A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8E187B

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

Preview Lab → · Contrast checker → · Palette generator →

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