#7E20A9#7E20A9

#7E20A9 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.4% C 0.205 H 312.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E20A9
RGBrgb(126, 32, 169)
HSLhsl(281, 68%, 39%)
HSVhsv(281, 81%, 66%)
CMYKcmyk(25.4%, 81.1%, 0%, 33.7%)
CIE-LABlab(34.67, 59.28, -53.80)
CIE-LCHlch(34.67, 80.05, 317.78°)
OKLaboklab(46.37% 0.1371 -0.1524)
OKLCHoklch(46.37% 0.205 312)
XYZxyz(16.2808, 8.3337, 38.2793)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A9 #4BA920
analogous
#3A20A9 #7E20A9 #A92090
triadic
#7E20A9 #A97E20 #20A97E
tetradic
#7E20A9 #A93A20 #4BA920 #2090A9
square
#7E20A9 #A93A20 #4BA920 #2090A9
split-complementary
#7E20A9 #90A920 #20A93A
monochromatic
#310D42 #581676 #7E20A9 #A32FD8 #B962E1

Accessibility & contrast

On white

7.88
#7E20A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E20A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20A9
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A9#FFFFFF#000000##FFFFFF
##7E20A91.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#794366
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e20a9;
/* rgb */ color: rgb(126, 32, 169);
/* oklch */ color: oklch(46.4% 0.205 312.0);
Tailwind
colors: {
  custom: {
    50: '#a868c3',
    500: '#7e20a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a9;
$custom-light: #a868c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a9",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 281.168,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46366,
    "c": 0.20504,
    "h": 312
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#7E20A9
secondary
#7FC65F
accent
#EB3D73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E20A9

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

Preview Lab → · Contrast checker → · Palette generator →

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