#7822AA#7822AA

#7822AA is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.8% C 0.202 H 308.9°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7822AA
RGBrgb(120, 34, 170)
HSLhsl(278, 67%, 40%)
HSVhsv(278, 80%, 67%)
CMYKcmyk(29.4%, 80%, 0%, 33.3%)
CIE-LABlab(34.07, 57.79, -55.42)
CIE-LCHlch(34.07, 80.07, 316.20°)
OKLaboklab(45.78% 0.1272 -0.1574)
OKLCHoklch(45.78% 0.202 308.9)
XYZxyz(15.5720, 8.0397, 38.7539)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822AA #54AA22
analogous
#3422AA #7822AA #AA2298
triadic
#7822AA #AA7822 #22AA78
tetradic
#7822AA #AA3422 #54AA22 #2298AA
square
#7822AA #AA3422 #54AA22 #2298AA
split-complementary
#7822AA #98AA22 #22AA34
monochromatic
#300E44 #541877 #7822AA #9A33D6 #B366E0

Accessibility & contrast

On white

8.05
#7822AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7822AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7822AA#FFFFFF#000000##FFFFFF
##7822AA1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0051A7
Tritanopia (blue-blind)
#704566
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7822aa;
/* rgb */ color: rgb(120, 34, 170);
/* oklch */ color: oklch(45.8% 0.202 308.9);
Tailwind
colors: {
  custom: {
    50: '#a468c4',
    500: '#7822aa',
    950: '#000000',
  },
}
SCSS
$custom: #7822aa;
$custom-light: #a468c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7822aa",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 277.941,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.45783,
    "c": 0.2024,
    "h": 308.9
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#7822AA
secondary
#87C662
accent
#EA3E7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7822AA

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

Preview Lab → · Contrast checker → · Palette generator →

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