#8C2AAA#8C2AAA

#8C2AAA is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.201 H 316.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8C2AAA
RGBrgb(140, 42, 170)
HSLhsl(286, 60%, 42%)
HSVhsv(286, 75%, 67%)
CMYKcmyk(17.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(38.08, 58.71, -48.77)
CIE-LCHlch(38.08, 76.33, 320.29°)
OKLaboklab(49.23% 0.1465 -0.1373)
OKLCHoklch(49.23% 0.201 316.9)
XYZxyz(18.8978, 10.1345, 38.9831)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AAA #48AA2A
analogous
#4C2AAA #8C2AAA #AA2A88
triadic
#8C2AAA #AA8C2A #2AAA8C
tetradic
#8C2AAA #AA4C2A #48AA2A #2A88AA
square
#8C2AAA #AA4C2A #48AA2A #2A88AA
split-complementary
#8C2AAA #88AA2A #2AAA4C
monochromatic
#3B1248 #641E79 #8C2AAA #AF41D0 #C372DC

Accessibility & contrast

On white

6.94
#8C2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8C2AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2AAA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AAA#FFFFFF#000000##FFFFFF
##8C2AAA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c2aaa;
/* rgb */ color: rgb(140, 42, 170);
/* oklch */ color: oklch(49.2% 0.201 316.9);
Tailwind
colors: {
  custom: {
    50: '#b26ec4',
    500: '#8c2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8c2aaa;
$custom-light: #b26ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2aaa",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 285.938,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49229,
    "c": 0.20077,
    "h": 316.9
  },
  "luminance": 0.10134
}

Semantic roles & 50–950 ramp

primary
#8C2AAA
secondary
#81C36C
accent
#E4446A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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