#7E21AE#7E21AE

#7E21AE is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.209 H 310.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E21AE
RGBrgb(126, 33, 174)
HSLhsl(280, 68%, 41%)
HSVhsv(280, 81%, 68%)
CMYKcmyk(27.6%, 81%, 0%, 31.8%)
CIE-LABlab(35.16, 60.00, -55.99)
CIE-LCHlch(35.16, 82.07, 316.98°)
OKLaboklab(46.83% 0.1352 -0.1589)
OKLCHoklch(46.83% 0.209 310.4)
XYZxyz(16.7865, 8.5797, 40.8079)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21AE #51AE21
analogous
#3721AE #7E21AE #AE2198
triadic
#7E21AE #AE7E21 #21AE7E
tetradic
#7E21AE #AE3721 #51AE21 #2198AE
square
#7E21AE #AE3721 #51AE21 #2198AE
split-complementary
#7E21AE #98AE21 #21AE37
monochromatic
#330D47 #59177B #7E21AE #A034D8 #B867E2

Accessibility & contrast

On white

7.73
#7E21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21AE
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21AE#FFFFFF#000000##FFFFFF
##7E21AE1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#774569
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e21ae;
/* rgb */ color: rgb(126, 33, 174);
/* oklch */ color: oklch(46.8% 0.209 310.4);
Tailwind
colors: {
  custom: {
    50: '#a969c7',
    500: '#7e21ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e21ae;
$custom-light: #a969c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21ae",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 279.574,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46832,
    "c": 0.20863,
    "h": 310.4
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#7E21AE
secondary
#85C863
accent
#EB3D78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E21AE

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

Preview Lab → · Contrast checker → · Palette generator →

#7E21AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva