#8C2CAA#8C2CAA

#8C2CAA is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.199 H 316.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8C2CAA
RGBrgb(140, 44, 170)
HSLhsl(286, 59%, 42%)
HSVhsv(286, 74%, 67%)
CMYKcmyk(17.6%, 74.1%, 0%, 33.3%)
CIE-LABlab(38.34, 57.98, -48.35)
CIE-LCHlch(38.34, 75.50, 320.17°)
OKLaboklab(49.41% 0.1446 -0.1361)
OKLCHoklch(49.41% 0.199 316.7)
XYZxyz(18.9705, 10.2799, 39.0074)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CAA #4AAA2C
analogous
#4D2CAA #8C2CAA #AA2C89
triadic
#8C2CAA #AA8C2C #2CAA8C
tetradic
#8C2CAA #AA4D2C #4AAA2C #2C89AA
square
#8C2CAA #AA4D2C #4AAA2C #2C89AA
split-complementary
#8C2CAA #89AA2C #2CAA4D
monochromatic
#3C1349 #641F79 #8C2CAA #AE44CF #C375DB

Accessibility & contrast

On white

6.87
#8C2CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8C2CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CAA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CAA#FFFFFF#000000##FFFFFF
##8C2CAA1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#2D5DA7
Tritanopia (blue-blind)
#8A4769
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2caa;
/* rgb */ color: rgb(140, 44, 170);
/* oklch */ color: oklch(49.4% 0.199 316.7);
Tailwind
colors: {
  custom: {
    50: '#b26fc4',
    500: '#8c2caa',
    950: '#000000',
  },
}
SCSS
$custom: #8c2caa;
$custom-light: #b26fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2caa",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 285.714,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49412,
    "c": 0.19858,
    "h": 316.7
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#8C2CAA
secondary
#83C36F
accent
#E2466B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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