#8E21C2#8E21C2

#8E21C2 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.6% C 0.231 H 311.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8E21C2
RGBrgb(142, 33, 194)
HSLhsl(281, 71%, 45%)
HSVhsv(281, 83%, 76%)
CMYKcmyk(26.8%, 83%, 0%, 23.9%)
CIE-LABlab(39.13, 66.72, -61.25)
CIE-LCHlch(39.13, 90.57, 317.45°)
OKLaboklab(50.57% 0.1515 -0.1738)
OKLCHoklch(50.57% 0.231 311.1)
XYZxyz(21.4349, 10.7341, 51.9712)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E21C2 #55C221
analogous
#3E21C2 #8E21C2 #C221A6
triadic
#8E21C2 #C28E21 #21C28E
tetradic
#8E21C2 #C23E21 #55C221 #21A6C2
square
#8E21C2 #C23E21 #55C221 #21A6C2
split-complementary
#8E21C2 #A6C221 #21C23E
monochromatic
#410F59 #68188E #8E21C2 #AC41DF #C376E8

Accessibility & contrast

On white

6.67
#8E21C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8E21C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E21C2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E21C2#FFFFFF#000000##FFFFFF
##8E21C21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#874C74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e21c2;
/* rgb */ color: rgb(142, 33, 194);
/* oklch */ color: oklch(50.6% 0.231 311.1);
Tailwind
colors: {
  custom: {
    50: '#b56cd5',
    500: '#8e21c2',
    950: '#000000',
  },
}
SCSS
$custom: #8e21c2;
$custom-light: #b56cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e21c2",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 280.621,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50571,
    "c": 0.2306,
    "h": 311.1
  },
  "luminance": 0.10734
}

Semantic roles & 50–950 ramp

primary
#8E21C2
secondary
#8FCF70
accent
#EE3A74
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#120814
muted
#817A83

Preview Lab

Preview with #8E21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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