#7A20B9#7A20B9

#7A20B9 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.1% C 0.218 H 305.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7A20B9
RGBrgb(122, 32, 185)
HSLhsl(275, 71%, 43%)
HSVhsv(275, 83%, 73%)
CMYKcmyk(34.1%, 82.7%, 0%, 27.5%)
CIE-LABlab(35.35, 62.02, -62.25)
CIE-LCHlch(35.35, 87.87, 314.90°)
OKLaboklab(47.11% 0.1274 -0.1774)
OKLCHoklch(47.11% 0.218 305.7)
XYZxyz(17.2975, 8.6735, 46.6524)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20B9 #5FB920
analogous
#2D20B9 #7A20B9 #B920AC
triadic
#7A20B9 #B97A20 #20B97A
tetradic
#7A20B9 #B92D20 #5FB920 #20ACB9
square
#7A20B9 #B92D20 #5FB920 #20ACB9
split-complementary
#7A20B9 #ACB920 #20B92D
monochromatic
#350E51 #581785 #7A20B9 #9A39DD #B46EE6

Accessibility & contrast

On white

7.68
#7A20B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7A20B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A20B9
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20B9#FFFFFF#000000##FFFFFF
##7A20B91.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#6E4B6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a20b9;
/* rgb */ color: rgb(122, 32, 185);
/* oklch */ color: oklch(47.1% 0.218 305.7);
Tailwind
colors: {
  custom: {
    50: '#a768cf',
    500: '#7a20b9',
    950: '#000000',
  },
}
SCSS
$custom: #7a20b9;
$custom-light: #a768cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20b9",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 185
  },
  "hsl": {
    "h": 275.294,
    "s": 70.507,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47114,
    "c": 0.21843,
    "h": 305.7
  },
  "luminance": 0.08673
}

Semantic roles & 50–950 ramp

primary
#7A20B9
secondary
#92CC69
accent
#ED3B84
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A20B9

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

Preview Lab → · Contrast checker → · Palette generator →

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