#8C187D#8C187D

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

Color values

HEX#8C187D
RGBrgb(140, 24, 125)
HSLhsl(308, 71%, 32%)
HSVhsv(308, 83%, 55%)
CMYKcmyk(0%, 82.9%, 10.7%, 45.1%)
CIE-LABlab(33.37, 56.45, -28.76)
CIE-LCHlch(33.37, 63.35, 333.00°)
OKLaboklab(44.99% 0.1644 -0.0789)
OKLCHoklch(44.99% 0.182 334.4)
XYZxyz(14.8437, 7.7107, 20.1046)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C187D #188C27
analogous
#61188C #8C187D #8C1843
triadic
#8C187D #7D8C18 #187D8C
tetradic
#8C187D #8C6118 #188C27 #18438C
square
#8C187D #8C6118 #188C27 #18438C
split-complementary
#8C187D #438C18 #188C61
monochromatic
#240620 #580F4E #8C187D #C021AC #DE40CA

Accessibility & contrast

On white

8.26
#8C187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C187D
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C187D#FFFFFF#000000##FFFFFF
##8C187D1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#93254B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c187d;
/* rgb */ color: rgb(140, 24, 125);
/* oklch */ color: oklch(45.0% 0.182 334.4);
Tailwind
colors: {
  custom: {
    50: '#b165a3',
    500: '#8c187d',
    950: '#000000',
  },
}
SCSS
$custom: #8c187d;
$custom-light: #b165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c187d",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 307.759,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44994,
    "c": 0.1823,
    "h": 334.4
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

primary
#8C187D
secondary
#41BF51
accent
#ED513A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C187D

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

Preview Lab → · Contrast checker → · Palette generator →

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