#7A20A3#7A20A3

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

Color values

HEX#7A20A3
RGBrgb(122, 32, 163)
HSLhsl(281, 67%, 38%)
HSVhsv(281, 80%, 64%)
CMYKcmyk(25.2%, 80.4%, 0%, 36.1%)
CIE-LABlab(33.60, 57.34, -51.95)
CIE-LCHlch(33.60, 77.38, 317.82°)
OKLaboklab(45.35% 0.1331 -0.1472)
OKLCHoklch(45.35% 0.198 312.1)
XYZxyz(15.1522, 7.8154, 35.3536)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20A3 #49A320
analogous
#3820A3 #7A20A3 #A3208A
triadic
#7A20A3 #A37A20 #20A37A
tetradic
#7A20A3 #A33820 #49A320 #208AA3
square
#7A20A3 #A33820 #49A320 #208AA3
split-complementary
#7A20A3 #8AA320 #20A338
monochromatic
#2D0C3D #541670 #7A20A3 #A02BD5 #B75EDF

Accessibility & contrast

On white

8.19
#7A20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A20A3
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20A3#FFFFFF#000000##FFFFFF
##7A20A31.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0151A0
Tritanopia (blue-blind)
#754162
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a20a3;
/* rgb */ color: rgb(122, 32, 163);
/* oklch */ color: oklch(45.3% 0.198 312.1);
Tailwind
colors: {
  custom: {
    50: '#a567bf',
    500: '#7a20a3',
    950: '#000000',
  },
}
SCSS
$custom: #7a20a3;
$custom-light: #a567bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20a3",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 281.221,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45347,
    "c": 0.19844,
    "h": 312.1
  },
  "luminance": 0.07815
}

Semantic roles & 50–950 ramp

primary
#7A20A3
secondary
#7CC45B
accent
#EA3E74
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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