#8E21CA#8E21CA

#8E21CA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.2% C 0.237 H 309.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8E21CA
RGBrgb(142, 33, 202)
HSLhsl(279, 72%, 46%)
HSVhsv(279, 84%, 79%)
CMYKcmyk(29.7%, 83.7%, 0%, 20.8%)
CIE-LABlab(39.75, 68.33, -64.90)
CIE-LCHlch(39.75, 94.24, 316.47°)
OKLaboklab(51.2% 0.1494 -0.1845)
OKLCHoklch(51.2% 0.237 309)
XYZxyz(22.3577, 11.1032, 56.8310)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E21CA #5DCA21
analogous
#3921CA #8E21CA #CA21B1
triadic
#8E21CA #CA8E21 #21CA8E
tetradic
#8E21CA #CA3921 #5DCA21 #21B1CA
square
#8E21CA #CA3921 #5DCA21 #21B1CA
split-complementary
#8E21CA #B1CA21 #21CA39
monochromatic
#441061 #691895 #8E21CA #AA47E1 #C37CEA

Accessibility & contrast

On white

6.52
#8E21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8E21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E21CA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E21CA#FFFFFF#000000##FFFFFF
##8E21CA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#855079
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8e21ca;
/* rgb */ color: rgb(142, 33, 202);
/* oklch */ color: oklch(51.2% 0.237 309.0);
Tailwind
colors: {
  custom: {
    50: '#b56cdb',
    500: '#8e21ca',
    950: '#000000',
  },
}
SCSS
$custom: #8e21ca;
$custom-light: #b56cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e21ca",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 278.698,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.512,
    "c": 0.23743,
    "h": 309
  },
  "luminance": 0.11103
}

Semantic roles & 50–950 ramp

primary
#8E21CA
secondary
#96D275
accent
#EF397A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8E21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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