#7B20A2#7B20A2

#7B20A2 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.198 H 312.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7B20A2
RGBrgb(123, 32, 162)
HSLhsl(282, 67%, 38%)
HSVhsv(282, 80%, 64%)
CMYKcmyk(24.1%, 80.2%, 0%, 36.5%)
CIE-LABlab(33.68, 57.31, -51.21)
CIE-LCHlch(33.68, 76.86, 318.22°)
OKLaboklab(45.41% 0.1347 -0.145)
OKLCHoklch(45.41% 0.198 312.9)
XYZxyz(15.2053, 7.8531, 34.8902)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B20A2 #47A220
analogous
#3A20A2 #7B20A2 #A22088
triadic
#7B20A2 #A27B20 #20A27B
tetradic
#7B20A2 #A23A20 #47A220 #2088A2
square
#7B20A2 #A23A20 #47A220 #2088A2
split-complementary
#7B20A2 #88A220 #20A23A
monochromatic
#2D0C3C #54166F #7B20A2 #A22AD5 #B85DDF

Accessibility & contrast

On white

8.17
#7B20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B20A2
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B20A2#FFFFFF#000000##FFFFFF
##7B20A21.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#09519F
Tritanopia (blue-blind)
#774061
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b20a2;
/* rgb */ color: rgb(123, 32, 162);
/* oklch */ color: oklch(45.4% 0.198 312.9);
Tailwind
colors: {
  custom: {
    50: '#a667be',
    500: '#7b20a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b20a2;
$custom-light: #a667be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b20a2",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 282,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4541,
    "c": 0.19786,
    "h": 312.9
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#7B20A2
secondary
#7AC35A
accent
#EA3E71
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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