#7E21AD#7E21AD

#7E21AD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.208 H 310.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7E21AD
RGBrgb(126, 33, 173)
HSLhsl(280, 68%, 40%)
HSVhsv(280, 81%, 68%)
CMYKcmyk(27.2%, 80.9%, 0%, 32.2%)
CIE-LABlab(35.08, 59.79, -55.52)
CIE-LCHlch(35.08, 81.59, 317.12°)
OKLaboklab(46.75% 0.1354 -0.1575)
OKLCHoklch(46.75% 0.208 310.7)
XYZxyz(16.6894, 8.5409, 40.2964)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21AD #50AD21
analogous
#3821AD #7E21AD #AD2196
triadic
#7E21AD #AD7E21 #21AD7E
tetradic
#7E21AD #AD3821 #50AD21 #2196AD
square
#7E21AD #AD3821 #50AD21 #2196AD
split-complementary
#7E21AD #96AD21 #21AD38
monochromatic
#330D46 #59177A #7E21AD #A133D8 #B866E2

Accessibility & contrast

On white

7.75
#7E21AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E21AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21AD
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21AD#FFFFFF#000000##FFFFFF
##7E21AD1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#774568
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e21ad;
/* rgb */ color: rgb(126, 33, 173);
/* oklch */ color: oklch(46.8% 0.208 310.7);
Tailwind
colors: {
  custom: {
    50: '#a869c6',
    500: '#7e21ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e21ad;
$custom-light: #a869c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21ad",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 173
  },
  "hsl": {
    "h": 279.857,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46753,
    "c": 0.20772,
    "h": 310.7
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#7E21AD
secondary
#84C762
accent
#EB3D77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E21AD

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

Preview Lab → · Contrast checker → · Palette generator →

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