#8C128A#8C128A

#8C128A is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.4% C 0.196 H 329.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8C128A
RGBrgb(140, 18, 138)
HSLhsl(301, 77%, 31%)
HSVhsv(301, 87%, 55%)
CMYKcmyk(0%, 87.1%, 1.4%, 45.1%)
CIE-LABlab(33.66, 59.83, -36.41)
CIE-LCHlch(33.66, 70.04, 328.68°)
OKLaboklab(45.44% 0.1682 -0.101)
OKLCHoklch(45.44% 0.196 329)
XYZxyz(15.6188, 7.8443, 24.7313)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C128A #128C14
analogous
#51128C #8C128A #8C124D
triadic
#8C128A #8A8C12 #128A8C
tetradic
#8C128A #8C5112 #128C14 #124D8C
square
#8C128A #8C5112 #128C14 #124D8C
split-complementary
#8C128A #4D8C12 #128C51
monochromatic
#20041F #560B55 #8C128A #C219BF #E534E2

Accessibility & contrast

On white

8.18
#8C128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8C128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C128A
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C128A#FFFFFF#000000##FFFFFF
##8C128A1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#3B5487
Tritanopia (blue-blind)
#912951
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8c128a;
/* rgb */ color: rgb(140, 18, 138);
/* oklch */ color: oklch(45.4% 0.196 329.0);
Tailwind
colors: {
  custom: {
    50: '#b264ad',
    500: '#8c128a',
    950: '#000000',
  },
}
SCSS
$custom: #8c128a;
$custom-light: #b264ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8c128a",
  "rgb": {
    "r": 140,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 300.984,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.45438,
    "c": 0.19616,
    "h": 329
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#8C128A
secondary
#39C03C
accent
#F43734
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8C128A

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

Preview Lab → · Contrast checker → · Palette generator →

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