#7E20AB#7E20AB

#7E20AB is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.207 H 311.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7E20AB
RGBrgb(126, 32, 171)
HSLhsl(281, 68%, 40%)
HSVhsv(281, 81%, 67%)
CMYKcmyk(26.3%, 81.3%, 0%, 32.9%)
CIE-LABlab(34.82, 59.70, -54.75)
CIE-LCHlch(34.82, 81.00, 317.48°)
OKLaboklab(46.52% 0.1367 -0.1552)
OKLCHoklch(46.52% 0.207 311.4)
XYZxyz(16.4700, 8.4094, 39.2757)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20AB #4DAB20
analogous
#3920AB #7E20AB #AB2092
triadic
#7E20AB #AB7E20 #20AB7E
tetradic
#7E20AB #AB3920 #4DAB20 #2092AB
square
#7E20AB #AB3920 #4DAB20 #2092AB
split-complementary
#7E20AB #92AB20 #20AB39
monochromatic
#320D44 #581677 #7E20AB #A230D8 #B963E2

Accessibility & contrast

On white

7.83
#7E20AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E20AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20AB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20AB#FFFFFF#000000##FFFFFF
##7E20AB1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#784467
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e20ab;
/* rgb */ color: rgb(126, 32, 171);
/* oklch */ color: oklch(46.5% 0.207 311.4);
Tailwind
colors: {
  custom: {
    50: '#a868c5',
    500: '#7e20ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e20ab;
$custom-light: #a868c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20ab",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 171
  },
  "hsl": {
    "h": 280.576,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46521,
    "c": 0.20682,
    "h": 311.4
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#7E20AB
secondary
#81C760
accent
#EB3C75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E20AB

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

Preview Lab → · Contrast checker → · Palette generator →

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