#7C20A6#7C20A6

#7C20A6 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 45.9% C 0.202 H 312.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7C20A6
RGBrgb(124, 32, 166)
HSLhsl(281, 68%, 39%)
HSVhsv(281, 81%, 65%)
CMYKcmyk(25.3%, 80.7%, 0%, 34.9%)
CIE-LABlab(34.13, 58.32, -52.88)
CIE-LCHlch(34.13, 78.72, 317.80°)
OKLaboklab(45.86% 0.1351 -0.1498)
OKLCHoklch(45.86% 0.202 312)
XYZxyz(15.7103, 8.0717, 36.7994)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C20A6 #4AA620
analogous
#3920A6 #7C20A6 #A6208D
triadic
#7C20A6 #A67C20 #20A67C
tetradic
#7C20A6 #A63920 #4AA620 #208DA6
square
#7C20A6 #A63920 #4AA620 #208DA6
split-complementary
#7C20A6 #8DA620 #20A639
monochromatic
#2F0C3F #561673 #7C20A6 #A12DD6 #B860E0

Accessibility & contrast

On white

8.03
#7C20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C20A6
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C20A6#FFFFFF#000000##FFFFFF
##7C20A61.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#774264
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c20a6;
/* rgb */ color: rgb(124, 32, 166);
/* oklch */ color: oklch(45.9% 0.202 312.0);
Tailwind
colors: {
  custom: {
    50: '#a768c1',
    500: '#7c20a6',
    950: '#000000',
  },
}
SCSS
$custom: #7c20a6;
$custom-light: #a768c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c20a6",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 281.194,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.20176,
    "h": 312
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#7C20A6
secondary
#7DC55D
accent
#EB3D74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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