#7E20AD#7E20AD

#7E20AD is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.209 H 310.8°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7E20AD
RGBrgb(126, 32, 173)
HSLhsl(280, 69%, 40%)
HSVhsv(280, 82%, 68%)
CMYKcmyk(27.2%, 81.5%, 0%, 32.2%)
CIE-LABlab(34.98, 60.11, -55.69)
CIE-LCHlch(34.98, 81.95, 317.19°)
OKLaboklab(46.68% 0.1362 -0.158)
OKLCHoklch(46.68% 0.209 310.8)
XYZxyz(16.6621, 8.4862, 40.2873)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20AD #4FAD20
analogous
#3820AD #7E20AD #AD2095
triadic
#7E20AD #AD7E20 #20AD7E
tetradic
#7E20AD #AD3820 #4FAD20 #2095AD
square
#7E20AD #AD3820 #4FAD20 #2095AD
split-complementary
#7E20AD #95AD20 #20AD38
monochromatic
#330D46 #581679 #7E20AD #A131D9 #B965E2

Accessibility & contrast

On white

7.79
#7E20AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E20AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20AD
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20AD#FFFFFF#000000##FFFFFF
##7E20AD1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e20ad;
/* rgb */ color: rgb(126, 32, 173);
/* oklch */ color: oklch(46.7% 0.209 310.8);
Tailwind
colors: {
  custom: {
    50: '#a968c6',
    500: '#7e20ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e20ad;
$custom-light: #a968c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20ad",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 173
  },
  "hsl": {
    "h": 280,
    "s": 68.78,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46677,
    "c": 0.20861,
    "h": 310.8
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#7E20AD
secondary
#83C861
accent
#EC3C77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E20AD

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

Preview Lab → · Contrast checker → · Palette generator →

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