#8C187E#8C187E

#8C187E is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.183 H 333.9°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8C187E
RGBrgb(140, 24, 126)
HSLhsl(307, 71%, 32%)
HSVhsv(307, 83%, 55%)
CMYKcmyk(0%, 82.9%, 10%, 45.1%)
CIE-LABlab(33.43, 56.60, -29.30)
CIE-LCHlch(33.43, 63.73, 332.63°)
OKLaboklab(45.05% 0.1644 -0.0804)
OKLCHoklch(45.05% 0.183 333.9)
XYZxyz(14.9079, 7.7364, 20.4428)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C187E #188C26
analogous
#60188C #8C187E #8C1844
triadic
#8C187E #7E8C18 #187E8C
tetradic
#8C187E #8C6018 #188C26 #18448C
square
#8C187E #8C6018 #188C26 #18448C
split-complementary
#8C187E #448C18 #188C60
monochromatic
#240620 #580F4F #8C187E #C021AD #DE40CB

Accessibility & contrast

On white

8.24
#8C187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8C187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C187E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C187E#FFFFFF#000000##FFFFFF
##8C187E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144481
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#93254B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8c187e;
/* rgb */ color: rgb(140, 24, 126);
/* oklch */ color: oklch(45.1% 0.183 333.9);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8c187e',
    950: '#000000',
  },
}
SCSS
$custom: #8c187e;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c187e",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 307.241,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45051,
    "c": 0.18301,
    "h": 333.9
  },
  "luminance": 0.07735
}

Semantic roles & 50–950 ramp

primary
#8C187E
secondary
#41BF50
accent
#ED503A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C187E

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

Preview Lab → · Contrast checker → · Palette generator →

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