#7E20A0#7E20A0

#7E20A0 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.197 H 314.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7E20A0
RGBrgb(126, 32, 160)
HSLhsl(284, 67%, 38%)
HSVhsv(284, 80%, 63%)
CMYKcmyk(21.2%, 80%, 0%, 37.3%)
CIE-LABlab(34.00, 57.45, -49.46)
CIE-LCHlch(34.00, 75.81, 319.28°)
OKLaboklab(45.68% 0.139 -0.1397)
OKLCHoklch(45.68% 0.197 314.9)
XYZxyz(15.4648, 8.0073, 33.9818)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A0 #42A020
analogous
#3E20A0 #7E20A0 #A02082
triadic
#7E20A0 #A07E20 #20A07E
tetradic
#7E20A0 #A03E20 #42A020 #2082A0
square
#7E20A0 #A03E20 #42A020 #2082A0
split-complementary
#7E20A0 #82A020 #20A03E
monochromatic
#2E0C3A #56166D #7E20A0 #A62AD3 #BC5CDE

Accessibility & contrast

On white

8.07
#7E20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20A0
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A0#FFFFFF#000000##FFFFFF
##7E20A01.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#18529D
Tritanopia (blue-blind)
#7B3F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e20a0;
/* rgb */ color: rgb(126, 32, 160);
/* oklch */ color: oklch(45.7% 0.197 314.9);
Tailwind
colors: {
  custom: {
    50: '#a868bd',
    500: '#7e20a0',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a0;
$custom-light: #a868bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a0",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 284.063,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45685,
    "c": 0.19706,
    "h": 314.9
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#7E20A0
secondary
#75C359
accent
#EA3E6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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