#7A20BB#7A20BB

#7A20BB is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.3% C 0.220 H 305.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7A20BB
RGBrgb(122, 32, 187)
HSLhsl(275, 71%, 43%)
HSVhsv(275, 83%, 73%)
CMYKcmyk(34.8%, 82.9%, 0%, 26.7%)
CIE-LABlab(35.52, 62.45, -63.15)
CIE-LCHlch(35.52, 88.82, 314.68°)
OKLaboklab(47.28% 0.1268 -0.1801)
OKLCHoklch(47.28% 0.22 305.2)
XYZxyz(17.5101, 8.7586, 47.7722)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A20BB #61BB20
analogous
#2D20BB #7A20BB #BB20AE
triadic
#7A20BB #BB7A20 #20BB7A
tetradic
#7A20BB #BB2D20 #61BB20 #20AEBB
square
#7A20BB #BB2D20 #61BB20 #20AEBB
split-complementary
#7A20BB #AEBB20 #20BB2D
monochromatic
#360E52 #581787 #7A20BB #993BDD #B46FE6

Accessibility & contrast

On white

7.63
#7A20BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A20BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A20BB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A20BB#FFFFFF#000000##FFFFFF
##7A20BB1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#6D4C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a20bb;
/* rgb */ color: rgb(122, 32, 187);
/* oklch */ color: oklch(47.3% 0.220 305.2);
Tailwind
colors: {
  custom: {
    50: '#a769d1',
    500: '#7a20bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a20bb;
$custom-light: #a769d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a20bb",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 187
  },
  "hsl": {
    "h": 274.839,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47282,
    "c": 0.22025,
    "h": 305.2
  },
  "luminance": 0.08758
}

Semantic roles & 50–950 ramp

primary
#7A20BB
secondary
#93CD6A
accent
#EE3A85
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A20BB

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

Preview Lab → · Contrast checker → · Palette generator →

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