#8C2AA4#8C2AA4

#8C2AA4 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.195 H 318.8°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8C2AA4
RGBrgb(140, 42, 164)
HSLhsl(288, 59%, 40%)
HSVhsv(288, 74%, 64%)
CMYKcmyk(14.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(37.69, 57.54, -45.82)
CIE-LCHlch(37.69, 73.55, 321.47°)
OKLaboklab(48.82% 0.1472 -0.1286)
OKLCHoklch(48.82% 0.195 318.8)
XYZxyz(18.3431, 9.9126, 36.0619)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AA4 #42A42A
analogous
#4F2AA4 #8C2AA4 #A42A7F
triadic
#8C2AA4 #A48C2A #2AA48C
tetradic
#8C2AA4 #A44F2A #42A42A #2A7FA4
square
#8C2AA4 #A44F2A #42A42A #2A7FA4
split-complementary
#8C2AA4 #7FA42A #2AA44F
monochromatic
#391143 #621E73 #8C2AA4 #B13ECD #C56EDA

Accessibility & contrast

On white

7.04
#8C2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8C2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2AA4
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AA4#FFFFFF#000000##FFFFFF
##8C2AA41.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#325CA1
Tritanopia (blue-blind)
#8C4365
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c2aa4;
/* rgb */ color: rgb(140, 42, 164);
/* oklch */ color: oklch(48.8% 0.195 318.8);
Tailwind
colors: {
  custom: {
    50: '#b16ec0',
    500: '#8c2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #8c2aa4;
$custom-light: #b16ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2aa4",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 288.197,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4882,
    "c": 0.19546,
    "h": 318.8
  },
  "luminance": 0.09912
}

Semantic roles & 50–950 ramp

primary
#8C2AA4
secondary
#7AC169
accent
#E24564
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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