#7A20A6#7A20A6

#7A20A6 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.201 H 311.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7A20A6
RGBrgb(122, 32, 166)
HSLhsl(280, 68%, 39%)
HSVhsv(280, 81%, 65%)
CMYKcmyk(26.5%, 80.7%, 0%, 34.9%)
CIE-LABlab(33.82, 57.96, -53.39)
CIE-LCHlch(33.82, 78.81, 317.35°)
OKLaboklab(45.58% 0.1325 -0.1514)
OKLCHoklch(45.58% 0.201 311.2)
XYZxyz(15.4242, 7.9242, 36.7860)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20A6 #4CA620
analogous
#3720A6 #7A20A6 #A6208F
triadic
#7A20A6 #A67A20 #20A67A
tetradic
#7A20A6 #A63720 #4CA620 #208FA6
square
#7A20A6 #A63720 #4CA620 #208FA6
split-complementary
#7A20A6 #8FA620 #20A637
monochromatic
#2F0C3F #541673 #7A20A6 #9F2DD6 #B660E0

Accessibility & contrast

On white

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

On black

2.58
#7A20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7A20A6#FFFFFF#000000##FFFFFF
##7A20A61.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a20a6;
/* rgb */ color: rgb(122, 32, 166);
/* oklch */ color: oklch(45.6% 0.201 311.2);
Tailwind
colors: {
  custom: {
    50: '#a567c1',
    500: '#7a20a6',
    950: '#000000',
  },
}
SCSS
$custom: #7a20a6;
$custom-light: #a567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20a6",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 280.299,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.20115,
    "h": 311.2
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#7A20A6
secondary
#7FC55D
accent
#EB3D76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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