#7C20A0#7C20A0

#7C20A0 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.196 H 314.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7C20A0
RGBrgb(124, 32, 160)
HSLhsl(283, 67%, 38%)
HSVhsv(283, 80%, 63%)
CMYKcmyk(22.5%, 80%, 0%, 37.3%)
CIE-LABlab(33.68, 57.09, -49.98)
CIE-LCHlch(33.68, 75.88, 318.79°)
OKLaboklab(45.4% 0.1364 -0.1413)
OKLCHoklch(45.4% 0.196 314)
XYZxyz(15.1728, 7.8567, 33.9681)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C20A0 #44A020
analogous
#3C20A0 #7C20A0 #A02084
triadic
#7C20A0 #A07C20 #20A07C
tetradic
#7C20A0 #A03C20 #44A020 #2084A0
square
#7C20A0 #A03C20 #44A020 #2084A0
split-complementary
#7C20A0 #84A020 #20A03C
monochromatic
#2D0C3A #54166D #7C20A0 #A42AD3 #BA5CDE

Accessibility & contrast

On white

8.17
#7C20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7C20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C20A0
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C20A0#FFFFFF#000000##FFFFFF
##7C20A01.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#13519D
Tritanopia (blue-blind)
#783F60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c20a0;
/* rgb */ color: rgb(124, 32, 160);
/* oklch */ color: oklch(45.4% 0.196 314.0);
Tailwind
colors: {
  custom: {
    50: '#a667bd',
    500: '#7c20a0',
    950: '#000000',
  },
}
SCSS
$custom: #7c20a0;
$custom-light: #a667bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c20a0",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 283.125,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45401,
    "c": 0.19639,
    "h": 314
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#7C20A0
secondary
#77C359
accent
#EA3E6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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