#7A20AC#7A20AC

#7A20AC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.1% C 0.207 H 309.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7A20AC
RGBrgb(122, 32, 172)
HSLhsl(279, 69%, 40%)
HSVhsv(279, 81%, 67%)
CMYKcmyk(29.1%, 81.4%, 0%, 32.5%)
CIE-LABlab(34.29, 59.23, -56.23)
CIE-LCHlch(34.29, 81.67, 316.49°)
OKLaboklab(46.05% 0.131 -0.1597)
OKLCHoklch(46.05% 0.207 309.4)
XYZxyz(15.9874, 8.1495, 39.7525)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20AC #52AC20
analogous
#3420AC #7A20AC #AC2098
triadic
#7A20AC #AC7A20 #20AC7A
tetradic
#7A20AC #AC3420 #52AC20 #2098AC
square
#7A20AC #AC3420 #52AC20 #2098AC
split-complementary
#7A20AC #98AC20 #20AC34
monochromatic
#310D45 #551678 #7A20AC #9D31D9 #B564E2

Accessibility & contrast

On white

7.99
#7A20AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A20AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A20AC
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20AC#FFFFFF#000000##FFFFFF
##7A20AC1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#724567
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a20ac;
/* rgb */ color: rgb(122, 32, 172);
/* oklch */ color: oklch(46.1% 0.207 309.4);
Tailwind
colors: {
  custom: {
    50: '#a668c6',
    500: '#7a20ac',
    950: '#000000',
  },
}
SCSS
$custom: #7a20ac;
$custom-light: #a668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20ac",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 172
  },
  "hsl": {
    "h": 278.571,
    "s": 68.627,
    "l": 40
  },
  "oklch": {
    "l": 0.46052,
    "c": 0.20659,
    "h": 309.4
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#7A20AC
secondary
#85C760
accent
#EB3C7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A20AC

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

Preview Lab → · Contrast checker → · Palette generator →

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