#8C2AA0#8C2AA0

#8C2AA0 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.192 H 320.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#8C2AA0
RGBrgb(140, 42, 160)
HSLhsl(290, 58%, 40%)
HSVhsv(290, 74%, 63%)
CMYKcmyk(12.5%, 73.8%, 0%, 37.3%)
CIE-LABlab(37.43, 56.78, -43.82)
CIE-LCHlch(37.43, 71.72, 322.34°)
OKLaboklab(48.56% 0.1475 -0.1228)
OKLCHoklch(48.56% 0.192 320.2)
XYZxyz(17.9876, 9.7704, 34.1893)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AA0 #3EA02A
analogous
#512AA0 #8C2AA0 #A02A79
triadic
#8C2AA0 #A08C2A #2AA08C
tetradic
#8C2AA0 #A0512A #3EA02A #2A79A0
square
#8C2AA0 #A0512A #3EA02A #2A79A0
split-complementary
#8C2AA0 #79A02A #2AA051
monochromatic
#37113F #621D70 #8C2AA0 #B33CCC #C66CD8

Accessibility & contrast

On white

7.11
#8C2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8C2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2AA0
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AA0#FFFFFF#000000##FFFFFF
##8C2AA01.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#355B9D
Tritanopia (blue-blind)
#8D4163
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8c2aa0;
/* rgb */ color: rgb(140, 42, 160);
/* oklch */ color: oklch(48.6% 0.192 320.2);
Tailwind
colors: {
  custom: {
    50: '#b16ebd',
    500: '#8c2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #8c2aa0;
$custom-light: #b16ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2aa0",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 289.831,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48555,
    "c": 0.19195,
    "h": 320.2
  },
  "luminance": 0.09769
}

Semantic roles & 50–950 ramp

primary
#8C2AA0
secondary
#76BF67
accent
#E24661
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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