#7E20A6#7E20A6

#7E20A6 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.202 H 312.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7E20A6
RGBrgb(126, 32, 166)
HSLhsl(282, 68%, 39%)
HSVhsv(282, 81%, 65%)
CMYKcmyk(24.1%, 80.7%, 0%, 34.9%)
CIE-LABlab(34.44, 58.67, -52.36)
CIE-LCHlch(34.44, 78.64, 318.25°)
OKLaboklab(46.14% 0.1378 -0.1482)
OKLCHoklch(46.14% 0.202 312.9)
XYZxyz(16.0024, 8.2223, 36.8131)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A6 #48A620
analogous
#3B20A6 #7E20A6 #A6208B
triadic
#7E20A6 #A67E20 #20A67E
tetradic
#7E20A6 #A63B20 #48A620 #208BA6
square
#7E20A6 #A63B20 #48A620 #208BA6
split-complementary
#7E20A6 #8BA620 #20A63B
monochromatic
#300C3F #571673 #7E20A6 #A42DD6 #BA60E0

Accessibility & contrast

On white

7.94
#7E20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20A6
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A6#FFFFFF#000000##FFFFFF
##7E20A61.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0753A3
Tritanopia (blue-blind)
#794164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e20a6;
/* rgb */ color: rgb(126, 32, 166);
/* oklch */ color: oklch(46.1% 0.202 312.9);
Tailwind
colors: {
  custom: {
    50: '#a868c1',
    500: '#7e20a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a6;
$custom-light: #a868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a6",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 282.09,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.20237,
    "h": 312.9
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#7E20A6
secondary
#7CC55D
accent
#EB3D71
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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