#7E20A4#7E20A4

#7E20A4 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.201 H 313.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7E20A4
RGBrgb(126, 32, 164)
HSLhsl(283, 67%, 38%)
HSVhsv(283, 80%, 64%)
CMYKcmyk(23.2%, 80.5%, 0%, 35.7%)
CIE-LABlab(34.29, 58.26, -51.40)
CIE-LCHlch(34.29, 77.69, 318.58°)
OKLaboklab(45.99% 0.1382 -0.1454)
OKLCHoklch(45.99% 0.201 313.5)
XYZxyz(15.8204, 8.1495, 35.8544)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A4 #46A420
analogous
#3C20A4 #7E20A4 #A42088
triadic
#7E20A4 #A47E20 #20A47E
tetradic
#7E20A4 #A43C20 #46A420 #2088A4
square
#7E20A4 #A43C20 #46A420 #2088A4
split-complementary
#7E20A4 #88A420 #20A43C
monochromatic
#2F0C3E #571671 #7E20A4 #A52BD6 #BB5FE0

Accessibility & contrast

On white

7.99
#7E20A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E20A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20A4
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A4#FFFFFF#000000##FFFFFF
##7E20A41.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0E53A1
Tritanopia (blue-blind)
#7A4063
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e20a4;
/* rgb */ color: rgb(126, 32, 164);
/* oklch */ color: oklch(46.0% 0.201 313.5);
Tailwind
colors: {
  custom: {
    50: '#a868c0',
    500: '#7e20a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a4;
$custom-light: #a868c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a4",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 164
  },
  "hsl": {
    "h": 282.727,
    "s": 67.347,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45985,
    "c": 0.2006,
    "h": 313.5
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#7E20A4
secondary
#7AC45C
accent
#EA3E6F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E20A4

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

Preview Lab → · Contrast checker → · Palette generator →

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