#8C1B8A#8C1B8A

#8C1B8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.189 H 328.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8C1B8A
RGBrgb(140, 27, 138)
HSLhsl(301, 68%, 33%)
HSVhsv(301, 81%, 55%)
CMYKcmyk(0%, 80.7%, 1.4%, 45.1%)
CIE-LABlab(34.39, 57.71, -35.25)
CIE-LCHlch(34.39, 67.62, 328.58°)
OKLaboklab(45.96% 0.1621 -0.0977)
OKLCHoklch(45.96% 0.189 328.9)
XYZxyz(15.7945, 8.1955, 24.7898)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C1B8A #1B8C1D
analogous
#551B8C #8C1B8A #8C1B51
triadic
#8C1B8A #8A8C1B #1B8A8C
tetradic
#8C1B8A #8C551B #1B8C1D #1B518C
square
#8C1B8A #8C551B #1B8C1D #1B518C
split-complementary
#8C1B8A #518C1B #1B8C55
monochromatic
#250725 #591157 #8C1B8A #BF25BD #DB46D9

Accessibility & contrast

On white

7.96
#8C1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8C1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C1B8A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C1B8A#FFFFFF#000000##FFFFFF
##8C1B8A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#912E53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c1b8a;
/* rgb */ color: rgb(140, 27, 138);
/* oklch */ color: oklch(46.0% 0.189 328.9);
Tailwind
colors: {
  custom: {
    50: '#b167ac',
    500: '#8c1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8c1b8a;
$custom-light: #b167ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8c1b8a",
  "rgb": {
    "r": 140,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 301.062,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45956,
    "c": 0.18925,
    "h": 328.9
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#8C1B8A
secondary
#46BD48
accent
#EB403D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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