#8C187C#8C187C

#8C187C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.182 H 334.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8C187C
RGBrgb(140, 24, 124)
HSLhsl(308, 71%, 32%)
HSVhsv(308, 83%, 55%)
CMYKcmyk(0%, 82.9%, 11.4%, 45.1%)
CIE-LABlab(33.32, 56.29, -28.22)
CIE-LCHlch(33.32, 62.97, 333.38°)
OKLaboklab(44.94% 0.1643 -0.0773)
OKLCHoklch(44.94% 0.182 334.8)
XYZxyz(14.7801, 7.6853, 19.7699)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C187C #188C28
analogous
#62188C #8C187C #8C1842
triadic
#8C187C #7C8C18 #187C8C
tetradic
#8C187C #8C6218 #188C28 #18428C
square
#8C187C #8C6218 #188C28 #18428C
split-complementary
#8C187C #428C18 #188C62
monochromatic
#24061F #580F4E #8C187C #C021AA #DE40C8

Accessibility & contrast

On white

8.28
#8C187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8C187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C187C
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C187C#FFFFFF#000000##FFFFFF
##8C187C1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#93244A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c187c;
/* rgb */ color: rgb(140, 24, 124);
/* oklch */ color: oklch(44.9% 0.182 334.8);
Tailwind
colors: {
  custom: {
    50: '#b165a2',
    500: '#8c187c',
    950: '#000000',
  },
}
SCSS
$custom: #8c187c;
$custom-light: #b165a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c187c",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 308.276,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44938,
    "c": 0.18159,
    "h": 334.8
  },
  "luminance": 0.07684
}

Semantic roles & 50–950 ramp

primary
#8C187C
secondary
#41BF52
accent
#ED533A
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C187C

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

Preview Lab → · Contrast checker → · Palette generator →

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