#8C21AE#8C21AE

#8C21AE is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.8% C 0.213 H 316.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8C21AE
RGBrgb(140, 33, 174)
HSLhsl(286, 68%, 41%)
HSVhsv(286, 81%, 68%)
CMYKcmyk(19.5%, 81%, 0%, 31.8%)
CIE-LABlab(37.34, 62.45, -52.36)
CIE-LCHlch(37.34, 81.50, 320.02°)
OKLaboklab(48.79% 0.1534 -0.1478)
OKLCHoklch(48.79% 0.213 316.1)
XYZxyz(18.9979, 9.7199, 40.9116)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C21AE #43AE21
analogous
#4521AE #8C21AE #AE2189
triadic
#8C21AE #AE8C21 #21AE8C
tetradic
#8C21AE #AE4521 #43AE21 #2189AE
square
#8C21AE #AE4521 #43AE21 #2189AE
split-complementary
#8C21AE #89AE21 #21AE45
monochromatic
#390D47 #63177B #8C21AE #B134D8 #C567E2

Accessibility & contrast

On white

7.13
#8C21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8C21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C21AE
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C21AE#FFFFFF#000000##FFFFFF
##8C21AE1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#1E5BAB
Tritanopia (blue-blind)
#8A4369
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8c21ae;
/* rgb */ color: rgb(140, 33, 174);
/* oklch */ color: oklch(48.8% 0.213 316.1);
Tailwind
colors: {
  custom: {
    50: '#b26bc7',
    500: '#8c21ae',
    950: '#000000',
  },
}
SCSS
$custom: #8c21ae;
$custom-light: #b26bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c21ae",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 285.532,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4879,
    "c": 0.213,
    "h": 316.1
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

primary
#8C21AE
secondary
#7BC863
accent
#EB3D67
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8C21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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