#8C2EAA#8C2EAA

#8C2EAA is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.196 H 316.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8C2EAA
RGBrgb(140, 46, 170)
HSLhsl(285, 57%, 42%)
HSVhsv(285, 73%, 67%)
CMYKcmyk(17.6%, 72.9%, 0%, 33.3%)
CIE-LABlab(38.61, 57.22, -47.92)
CIE-LCHlch(38.61, 74.63, 320.05°)
OKLaboklab(49.6% 0.1427 -0.1348)
OKLCHoklch(49.6% 0.196 316.6)
XYZxyz(19.0468, 10.4325, 39.0328)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EAA #4CAA2E
analogous
#4E2EAA #8C2EAA #AA2E8A
triadic
#8C2EAA #AA8C2E #2EAA8C
tetradic
#8C2EAA #AA4E2E #4CAA2E #2E8AAA
square
#8C2EAA #AA4E2E #4CAA2E #2E8AAA
split-complementary
#8C2EAA #8AAA2E #2EAA4E
monochromatic
#3D144A #64217A #8C2EAA #AD48CD #C378DA

Accessibility & contrast

On white

6.80
#8C2EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8C2EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EAA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EAA#FFFFFF#000000##FFFFFF
##8C2EAA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#2F5EA7
Tritanopia (blue-blind)
#8A4869
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8c2eaa;
/* rgb */ color: rgb(140, 46, 170);
/* oklch */ color: oklch(49.6% 0.196 316.6);
Tailwind
colors: {
  custom: {
    50: '#b170c4',
    500: '#8c2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #8c2eaa;
$custom-light: #b170c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2eaa",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 285.484,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49602,
    "c": 0.19629,
    "h": 316.6
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#8C2EAA
secondary
#85C371
accent
#E1476C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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