#8C2AA2#8C2AA2

#8C2AA2 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.194 H 319.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8C2AA2
RGBrgb(140, 42, 162)
HSLhsl(289, 59%, 40%)
HSVhsv(289, 74%, 64%)
CMYKcmyk(13.6%, 74.1%, 0%, 36.5%)
CIE-LABlab(37.56, 57.16, -44.82)
CIE-LCHlch(37.56, 72.64, 321.90°)
OKLaboklab(48.69% 0.1474 -0.1257)
OKLCHoklch(48.69% 0.194 319.5)
XYZxyz(18.1639, 9.8409, 35.1181)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AA2 #40A22A
analogous
#502AA2 #8C2AA2 #A22A7C
triadic
#8C2AA2 #A28C2A #2AA28C
tetradic
#8C2AA2 #A2502A #40A22A #2A7CA2
square
#8C2AA2 #A2502A #40A22A #2A7CA2
split-complementary
#8C2AA2 #7CA22A #2AA250
monochromatic
#381141 #621D71 #8C2AA2 #B23DCD #C56DD9

Accessibility & contrast

On white

7.08
#8C2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8C2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2AA2
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AA2#FFFFFF#000000##FFFFFF
##8C2AA21.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#345C9F
Tritanopia (blue-blind)
#8C4264
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8c2aa2;
/* rgb */ color: rgb(140, 42, 162);
/* oklch */ color: oklch(48.7% 0.194 319.5);
Tailwind
colors: {
  custom: {
    50: '#b16ebe',
    500: '#8c2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8c2aa2;
$custom-light: #b16ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2aa2",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 289,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.48687,
    "c": 0.1937,
    "h": 319.5
  },
  "luminance": 0.0984
}

Semantic roles & 50–950 ramp

primary
#8C2AA2
secondary
#78C068
accent
#E24662
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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