#7C20A2#7C20A2

#7C20A2 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.198 H 313.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7C20A2
RGBrgb(124, 32, 162)
HSLhsl(282, 67%, 38%)
HSVhsv(282, 80%, 64%)
CMYKcmyk(23.5%, 80.2%, 0%, 36.5%)
CIE-LABlab(33.83, 57.49, -50.95)
CIE-LCHlch(33.83, 76.82, 318.45°)
OKLaboklab(45.55% 0.136 -0.1442)
OKLCHoklch(45.55% 0.198 313.3)
XYZxyz(15.3491, 7.9272, 34.8970)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C20A2 #46A220
analogous
#3B20A2 #7C20A2 #A22087
triadic
#7C20A2 #A27C20 #20A27C
tetradic
#7C20A2 #A23B20 #46A220 #2087A2
square
#7C20A2 #A23B20 #46A220 #2087A2
split-complementary
#7C20A2 #87A220 #20A23B
monochromatic
#2E0C3C #55166F #7C20A2 #A32AD5 #B95DDF

Accessibility & contrast

On white

8.12
#7C20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7C20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C20A2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C20A2#FFFFFF#000000##FFFFFF
##7C20A21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0D519F
Tritanopia (blue-blind)
#784061
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c20a2;
/* rgb */ color: rgb(124, 32, 162);
/* oklch */ color: oklch(45.6% 0.198 313.3);
Tailwind
colors: {
  custom: {
    50: '#a667be',
    500: '#7c20a2',
    950: '#000000',
  },
}
SCSS
$custom: #7c20a2;
$custom-light: #a667be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c20a2",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 282.462,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45551,
    "c": 0.19818,
    "h": 313.3
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#7C20A2
secondary
#79C35A
accent
#EA3E70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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