#7820A2#7820A2

#7820A2 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.197 H 311.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7820A2
RGBrgb(120, 32, 162)
HSLhsl(281, 67%, 38%)
HSVhsv(281, 80%, 64%)
CMYKcmyk(25.9%, 80.2%, 0%, 36.5%)
CIE-LABlab(33.21, 56.77, -51.99)
CIE-LCHlch(33.21, 76.98, 317.52°)
OKLaboklab(44.99% 0.1307 -0.1473)
OKLCHoklch(44.99% 0.197 311.6)
XYZxyz(14.7826, 7.6351, 34.8704)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7820A2 #4AA220
analogous
#3720A2 #7820A2 #A2208B
triadic
#7820A2 #A27820 #20A278
tetradic
#7820A2 #A23720 #4AA220 #208BA2
square
#7820A2 #A23720 #4AA220 #208BA2
split-complementary
#7820A2 #8BA220 #20A237
monochromatic
#2C0C3C #52166F #7820A2 #9E2AD5 #B55DDF

Accessibility & contrast

On white

8.31
#7820A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7820A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7820A2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7820A2#FFFFFF#000000##FFFFFF
##7820A21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#00509F
Tritanopia (blue-blind)
#734061
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7820a2;
/* rgb */ color: rgb(120, 32, 162);
/* oklch */ color: oklch(45.0% 0.197 311.6);
Tailwind
colors: {
  custom: {
    50: '#a467be',
    500: '#7820a2',
    950: '#000000',
  },
}
SCSS
$custom: #7820a2;
$custom-light: #a467be;
$custom-dark: #000000;
JSON
{
  "hex": "#7820a2",
  "rgb": {
    "r": 120,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 280.615,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44991,
    "c": 0.19693,
    "h": 311.6
  },
  "luminance": 0.07635
}

Semantic roles & 50–950 ramp

primary
#7820A2
secondary
#7CC35A
accent
#EA3E75
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7820A2

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

Preview Lab → · Contrast checker → · Palette generator →

#7820A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva