#8C2AA5#8C2AA5

#8C2AA5 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.196 H 318.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8C2AA5
RGBrgb(140, 42, 165)
HSLhsl(288, 59%, 41%)
HSVhsv(288, 75%, 65%)
CMYKcmyk(15.2%, 74.5%, 0%, 35.3%)
CIE-LABlab(37.75, 57.74, -46.31)
CIE-LCHlch(37.75, 74.01, 321.27°)
OKLaboklab(48.89% 0.1471 -0.1301)
OKLCHoklch(48.89% 0.196 318.5)
XYZxyz(18.4338, 9.9489, 36.5393)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AA5 #43A52A
analogous
#4E2AA5 #8C2AA5 #A52A80
triadic
#8C2AA5 #A58C2A #2AA58C
tetradic
#8C2AA5 #A54E2A #43A52A #2A80A5
square
#8C2AA5 #A54E2A #43A52A #2A80A5
split-complementary
#8C2AA5 #80A52A #2AA54E
monochromatic
#391143 #631E74 #8C2AA5 #B13ECE #C56FDA

Accessibility & contrast

On white

7.02
#8C2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8C2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2AA5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AA5#FFFFFF#000000##FFFFFF
##8C2AA51.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#315CA2
Tritanopia (blue-blind)
#8C4366
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c2aa5;
/* rgb */ color: rgb(140, 42, 165);
/* oklch */ color: oklch(48.9% 0.196 318.5);
Tailwind
colors: {
  custom: {
    50: '#b16ec0',
    500: '#8c2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #8c2aa5;
$custom-light: #b16ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2aa5",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 287.805,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.19634,
    "h": 318.5
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#8C2AA5
secondary
#7BC169
accent
#E34565
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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