#8E187C#8E187C

#8E187C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.183 H 335.6°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#8E187C
RGBrgb(142, 24, 124)
HSLhsl(309, 71%, 33%)
HSVhsv(309, 83%, 56%)
CMYKcmyk(0%, 83.1%, 12.7%, 44.3%)
CIE-LABlab(33.69, 56.74, -27.61)
CIE-LCHlch(33.69, 63.10, 334.05°)
OKLaboklab(45.27% 0.1663 -0.0755)
OKLCHoklch(45.27% 0.183 335.6)
XYZxyz(15.1203, 7.8607, 19.7858)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E187C #188E2A
analogous
#65188E #8E187C #8E1841
triadic
#8E187C #7C8E18 #187C8E
tetradic
#8E187C #8E6518 #188E2A #18418E
square
#8E187C #8E6518 #188E2A #18418E
split-complementary
#8E187C #418E18 #188E65
monochromatic
#250621 #5A0F4E #8E187C #C221AA #DF41C7

Accessibility & contrast

On white

8.17
#8E187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E187C
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E187C#FFFFFF#000000##FFFFFF
##8E187C1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447F
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#96234A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e187c;
/* rgb */ color: rgb(142, 24, 124);
/* oklch */ color: oklch(45.3% 0.183 335.6);
Tailwind
colors: {
  custom: {
    50: '#b365a2',
    500: '#8e187c',
    950: '#000000',
  },
}
SCSS
$custom: #8e187c;
$custom-light: #b365a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e187c",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 309.153,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.18264,
    "h": 335.6
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#8E187C
secondary
#42C055
accent
#EE553A
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E187C

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

Preview Lab → · Contrast checker → · Palette generator →

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