#7822A2#7822A2

#7822A2 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.195 H 311.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7822A2
RGBrgb(120, 34, 162)
HSLhsl(280, 65%, 38%)
HSVhsv(280, 79%, 64%)
CMYKcmyk(25.9%, 79%, 0%, 36.5%)
CIE-LABlab(33.45, 56.09, -51.60)
CIE-LCHlch(33.45, 76.21, 317.38°)
OKLaboklab(45.16% 0.129 -0.1462)
OKLCHoklch(45.16% 0.195 311.4)
XYZxyz(14.8381, 7.7461, 34.8889)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822A2 #4CA222
analogous
#3822A2 #7822A2 #A2228C
triadic
#7822A2 #A27822 #22A278
tetradic
#7822A2 #A23822 #4CA222 #228CA2
square
#7822A2 #A23822 #4CA222 #228CA2
split-complementary
#7822A2 #8CA222 #22A238
monochromatic
#2D0D3D #53176F #7822A2 #9D2ED3 #B561DE

Accessibility & contrast

On white

8.24
#7822A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7822A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7822A2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7822A2#FFFFFF#000000##FFFFFF
##7822A21.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7822a2;
/* rgb */ color: rgb(120, 34, 162);
/* oklch */ color: oklch(45.2% 0.195 311.4);
Tailwind
colors: {
  custom: {
    50: '#a468be',
    500: '#7822a2',
    950: '#000000',
  },
}
SCSS
$custom: #7822a2;
$custom-light: #a468be;
$custom-dark: #000000;
JSON
{
  "hex": "#7822a2",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 280.313,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45158,
    "c": 0.195,
    "h": 311.4
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#7822A2
secondary
#7EC35D
accent
#E84077
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7822A2

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

Preview Lab → · Contrast checker → · Palette generator →

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