#8C187B#8C187B

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

Color values

HEX#8C187B
RGBrgb(140, 24, 123)
HSLhsl(309, 71%, 32%)
HSVhsv(309, 83%, 55%)
CMYKcmyk(0%, 82.9%, 12.1%, 45.1%)
CIE-LABlab(33.26, 56.14, -27.68)
CIE-LCHlch(33.26, 62.59, 333.76°)
OKLaboklab(44.88% 0.1643 -0.0757)
OKLCHoklch(44.88% 0.181 335.2)
XYZxyz(14.7172, 7.6602, 19.4385)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C187B #188C29
analogous
#63188C #8C187B #8C1841
triadic
#8C187B #7B8C18 #187B8C
tetradic
#8C187B #8C6318 #188C29 #18418C
square
#8C187B #8C6318 #188C29 #18418C
split-complementary
#8C187B #418C18 #188C63
monochromatic
#24061F #580F4D #8C187B #C021A9 #DE40C7

Accessibility & contrast

On white

8.29
#8C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C187B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C187B#FFFFFF#000000##FFFFFF
##8C187B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437E
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#93234A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c187b;
/* rgb */ color: rgb(140, 24, 123);
/* oklch */ color: oklch(44.9% 0.181 335.2);
Tailwind
colors: {
  custom: {
    50: '#b165a1',
    500: '#8c187b',
    950: '#000000',
  },
}
SCSS
$custom: #8c187b;
$custom-light: #b165a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c187b",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 308.793,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44882,
    "c": 0.18089,
    "h": 335.2
  },
  "luminance": 0.07659
}

Semantic roles & 50–950 ramp

primary
#8C187B
secondary
#41BF53
accent
#ED553A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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