#8C187F#8C187F

#8C187F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.184 H 333.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8C187F
RGBrgb(140, 24, 127)
HSLhsl(307, 71%, 32%)
HSVhsv(307, 83%, 55%)
CMYKcmyk(0%, 82.9%, 9.3%, 45.1%)
CIE-LABlab(33.48, 56.75, -29.84)
CIE-LCHlch(33.48, 64.12, 332.26°)
OKLaboklab(45.11% 0.1644 -0.082)
OKLCHoklch(45.11% 0.184 333.5)
XYZxyz(14.9727, 7.7624, 20.7843)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C187F #188C25
analogous
#5F188C #8C187F #8C1845
triadic
#8C187F #7F8C18 #187F8C
tetradic
#8C187F #8C5F18 #188C25 #18458C
square
#8C187F #8C5F18 #188C25 #18458C
split-complementary
#8C187F #458C18 #188C5F
monochromatic
#240620 #580F50 #8C187F #C021AE #DE40CD

Accessibility & contrast

On white

8.23
#8C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C187F
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C187F#FFFFFF#000000##FFFFFF
##8C187F1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124482
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#93264C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8c187f;
/* rgb */ color: rgb(140, 24, 127);
/* oklch */ color: oklch(45.1% 0.184 333.5);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8c187f',
    950: '#000000',
  },
}
SCSS
$custom: #8c187f;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c187f",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 306.724,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45108,
    "c": 0.18372,
    "h": 333.5
  },
  "luminance": 0.07761
}

Semantic roles & 50–950 ramp

primary
#8C187F
secondary
#41BF4F
accent
#ED4E3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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