#7E20A1#7E20A1

#7E20A1 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.198 H 314.5°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7E20A1
RGBrgb(126, 32, 161)
HSLhsl(284, 67%, 38%)
HSVhsv(284, 80%, 63%)
CMYKcmyk(21.7%, 80.1%, 0%, 36.9%)
CIE-LABlab(34.07, 57.66, -49.95)
CIE-LCHlch(34.07, 76.28, 319.10°)
OKLaboklab(45.76% 0.1388 -0.1411)
OKLCHoklch(45.76% 0.198 314.5)
XYZxyz(15.5526, 8.0424, 34.4444)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A1 #43A120
analogous
#3E20A1 #7E20A1 #A12083
triadic
#7E20A1 #A17E20 #20A17E
tetradic
#7E20A1 #A13E20 #43A120 #2083A1
square
#7E20A1 #A13E20 #43A120 #2083A1
split-complementary
#7E20A1 #83A120 #20A13E
monochromatic
#2E0C3B #56166E #7E20A1 #A62AD4 #BB5DDF

Accessibility & contrast

On white

8.05
#7E20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20A1
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A1#FFFFFF#000000##FFFFFF
##7E20A11.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#16529E
Tritanopia (blue-blind)
#7B3F61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e20a1;
/* rgb */ color: rgb(126, 32, 161);
/* oklch */ color: oklch(45.8% 0.198 314.5);
Tailwind
colors: {
  custom: {
    50: '#a868be',
    500: '#7e20a1',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a1;
$custom-light: #a868be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a1",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 283.721,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.19795,
    "h": 314.5
  },
  "luminance": 0.08042
}

Semantic roles & 50–950 ramp

primary
#7E20A1
secondary
#76C35A
accent
#EA3E6D
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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