#7A20D4#7A20D4

#7A20D4 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.5% C 0.243 H 299.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7A20D4
RGBrgb(122, 32, 212)
HSLhsl(270, 74%, 48%)
HSVhsv(270, 85%, 83%)
CMYKcmyk(42.5%, 84.9%, 0%, 16.9%)
CIE-LABlab(37.71, 67.99, -74.16)
CIE-LCHlch(37.71, 100.61, 312.51°)
OKLaboklab(49.46% 0.1185 -0.2124)
OKLCHoklch(49.46% 0.243 299.2)
XYZxyz(20.4232, 9.9238, 63.1141)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20D4 #7AD420
analogous
#2020D4 #7A20D4 #D420D4
triadic
#7A20D4 #D47A20 #20D47A
tetradic
#7A20D4 #D42020 #7AD420 #20D4D4
square
#7A20D4 #D42020 #7AD420 #20D4D4
split-complementary
#7A20D4 #D4D420 #20D420
monochromatic
#3D106A #5B189F #7A20D4 #994DE4 #B782EC

Accessibility & contrast

On white

7.04
#7A20D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7A20D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A20D4
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20D4#FFFFFF#000000##FFFFFF
##7A20D41.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0057D1
Tritanopia (blue-blind)
#63577F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a20d4;
/* rgb */ color: rgb(122, 32, 212);
/* oklch */ color: oklch(49.5% 0.243 299.2);
Tailwind
colors: {
  custom: {
    50: '#a96ae3',
    500: '#7a20d4',
    950: '#000000',
  },
}
SCSS
$custom: #7a20d4;
$custom-light: #a96ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20d4",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 212
  },
  "hsl": {
    "h": 270,
    "s": 73.77,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49462,
    "c": 0.2432,
    "h": 299.2
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#7A20D4
secondary
#A8D57B
accent
#F03794
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7A20D4

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

Preview Lab → · Contrast checker → · Palette generator →

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