#7A20A8#7A20A8

#7A20A8 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.203 H 310.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7A20A8
RGBrgb(122, 32, 168)
HSLhsl(280, 68%, 39%)
HSVhsv(280, 81%, 66%)
CMYKcmyk(27.4%, 81%, 0%, 34.1%)
CIE-LABlab(33.98, 58.38, -54.34)
CIE-LCHlch(33.98, 79.76, 317.05°)
OKLaboklab(45.74% 0.132 -0.1542)
OKLCHoklch(45.74% 0.203 310.6)
XYZxyz(15.6091, 7.9981, 37.7597)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20A8 #4EA820
analogous
#3620A8 #7A20A8 #A82092
triadic
#7A20A8 #A87A20 #20A87A
tetradic
#7A20A8 #A83620 #4EA820 #2092A8
square
#7A20A8 #A83620 #4EA820 #2092A8
split-complementary
#7A20A8 #92A820 #20A836
monochromatic
#2F0C41 #551675 #7A20A8 #9E2ED7 #B661E1

Accessibility & contrast

On white

8.08
#7A20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7A20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A20A8
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20A8#FFFFFF#000000##FFFFFF
##7A20A81.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#744365
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a20a8;
/* rgb */ color: rgb(122, 32, 168);
/* oklch */ color: oklch(45.7% 0.203 310.6);
Tailwind
colors: {
  custom: {
    50: '#a567c3',
    500: '#7a20a8',
    950: '#000000',
  },
}
SCSS
$custom: #7a20a8;
$custom-light: #a567c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20a8",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 279.706,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45736,
    "c": 0.20297,
    "h": 310.6
  },
  "luminance": 0.07998
}

Semantic roles & 50–950 ramp

primary
#7A20A8
secondary
#81C65E
accent
#EB3D78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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