#7E20A3#7E20A3

#7E20A3 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.200 H 313.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E20A3
RGBrgb(126, 32, 163)
HSLhsl(283, 67%, 38%)
HSVhsv(283, 80%, 64%)
CMYKcmyk(22.7%, 80.4%, 0%, 36.1%)
CIE-LABlab(34.22, 58.06, -50.92)
CIE-LCHlch(34.22, 77.22, 318.75°)
OKLaboklab(45.91% 0.1384 -0.144)
OKLCHoklch(45.91% 0.2 313.9)
XYZxyz(15.7304, 8.1135, 35.3807)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20A3 #45A320
analogous
#3C20A3 #7E20A3 #A32086
triadic
#7E20A3 #A37E20 #20A37E
tetradic
#7E20A3 #A33C20 #45A320 #2086A3
square
#7E20A3 #A33C20 #45A320 #2086A3
split-complementary
#7E20A3 #86A320 #20A33C
monochromatic
#2F0C3D #561670 #7E20A3 #A52BD5 #BB5EDF

Accessibility & contrast

On white

8.01
#7E20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E20A3
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20A3#FFFFFF#000000##FFFFFF
##7E20A31.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#1153A0
Tritanopia (blue-blind)
#7A4062
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e20a3;
/* rgb */ color: rgb(126, 32, 163);
/* oklch */ color: oklch(45.9% 0.200 313.9);
Tailwind
colors: {
  custom: {
    50: '#a868bf',
    500: '#7e20a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e20a3;
$custom-light: #a868bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20a3",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 283.053,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45909,
    "c": 0.19972,
    "h": 313.9
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#7E20A3
secondary
#79C45B
accent
#EA3E6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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