#7E20A2#7E20A2

#7E20A2 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.199 H 314.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7E20A2
RGBrgb(126, 32, 162)
HSLhsl(283, 67%, 38%)
HSVhsv(283, 80%, 64%)
CMYKcmyk(22.2%, 80.2%, 0%, 36.5%)
CIE-LABlab(34.14, 57.86, -50.43)
CIE-LCHlch(34.14, 76.75, 318.92°)
OKLaboklab(45.83% 0.1386 -0.1426)
OKLCHoklch(45.83% 0.199 314.2)
XYZxyz(15.6412, 8.0778, 34.9107)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A2 #44A220
analogous
#3D20A2 #7E20A2 #A22085
triadic
#7E20A2 #A27E20 #20A27E
tetradic
#7E20A2 #A23D20 #44A220 #2085A2
square
#7E20A2 #A23D20 #44A220 #2085A2
split-complementary
#7E20A2 #85A220 #20A23D
monochromatic
#2F0C3C #56166F #7E20A2 #A62AD5 #BB5DDF

Accessibility & contrast

On white

8.03
#7E20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20A2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A2#FFFFFF#000000##FFFFFF
##7E20A21.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#13529F
Tritanopia (blue-blind)
#7A3F61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e20a2;
/* rgb */ color: rgb(126, 32, 162);
/* oklch */ color: oklch(45.8% 0.199 314.2);
Tailwind
colors: {
  custom: {
    50: '#a868be',
    500: '#7e20a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a2;
$custom-light: #a868be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a2",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 283.385,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45834,
    "c": 0.19884,
    "h": 314.2
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#7E20A2
secondary
#77C35A
accent
#EA3E6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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