#7A20A2#7A20A2

#7A20A2 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.198 H 312.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7A20A2
RGBrgb(122, 32, 162)
HSLhsl(282, 67%, 38%)
HSVhsv(282, 80%, 64%)
CMYKcmyk(24.7%, 80.2%, 0%, 36.5%)
CIE-LABlab(33.52, 57.13, -51.47)
CIE-LCHlch(33.52, 76.90, 317.98°)
OKLaboklab(45.27% 0.1333 -0.1457)
OKLCHoklch(45.27% 0.198 312.5)
XYZxyz(15.0629, 7.7797, 34.8836)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20A2 #48A220
analogous
#3920A2 #7A20A2 #A22089
triadic
#7A20A2 #A27A20 #20A27A
tetradic
#7A20A2 #A23920 #48A220 #2089A2
square
#7A20A2 #A23920 #48A220 #2089A2
split-complementary
#7A20A2 #89A220 #20A239
monochromatic
#2D0C3C #54166F #7A20A2 #A02AD5 #B75DDF

Accessibility & contrast

On white

8.22
#7A20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A20A2
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20A2#FFFFFF#000000##FFFFFF
##7A20A21.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#05519F
Tritanopia (blue-blind)
#754061
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a20a2;
/* rgb */ color: rgb(122, 32, 162);
/* oklch */ color: oklch(45.3% 0.198 312.5);
Tailwind
colors: {
  custom: {
    50: '#a567be',
    500: '#7a20a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a20a2;
$custom-light: #a567be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20a2",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 281.538,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4527,
    "c": 0.19754,
    "h": 312.5
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#7A20A2
secondary
#7BC35A
accent
#EA3E73
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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