#7822A6#7822A6

#7822A6 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.5% C 0.199 H 310.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7822A6
RGBrgb(120, 34, 166)
HSLhsl(279, 66%, 39%)
HSVhsv(279, 80%, 65%)
CMYKcmyk(27.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(33.75, 56.94, -53.52)
CIE-LCHlch(33.75, 78.14, 316.77°)
OKLaboklab(45.47% 0.1281 -0.1519)
OKLCHoklch(45.47% 0.199 310.2)
XYZxyz(15.1993, 7.8906, 36.7914)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822A6 #50A622
analogous
#3622A6 #7822A6 #A62292
triadic
#7822A6 #A67822 #22A678
tetradic
#7822A6 #A63622 #50A622 #2292A6
square
#7822A6 #A63622 #50A622 #2292A6
split-complementary
#7822A6 #92A622 #22A636
monochromatic
#2F0D40 #531873 #7822A6 #9B30D5 #B463DF

Accessibility & contrast

On white

8.15
#7822A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7822A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7822A6#FFFFFF#000000##FFFFFF
##7822A61.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#714364
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7822a6;
/* rgb */ color: rgb(120, 34, 166);
/* oklch */ color: oklch(45.5% 0.199 310.2);
Tailwind
colors: {
  custom: {
    50: '#a468c1',
    500: '#7822a6',
    950: '#000000',
  },
}
SCSS
$custom: #7822a6;
$custom-light: #a468c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7822a6",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 279.091,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45468,
    "c": 0.19869,
    "h": 310.2
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#7822A6
secondary
#83C45F
accent
#E93F7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7822A6

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

Preview Lab → · Contrast checker → · Palette generator →

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