#7822AC#7822AC

#7822AC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.204 H 308.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7822AC
RGBrgb(120, 34, 172)
HSLhsl(277, 67%, 40%)
HSVhsv(277, 80%, 67%)
CMYKcmyk(30.2%, 80.2%, 0%, 32.5%)
CIE-LABlab(34.22, 58.23, -56.36)
CIE-LCHlch(34.22, 81.03, 315.93°)
OKLaboklab(45.94% 0.1267 -0.1602)
OKLCHoklch(45.94% 0.204 308.3)
XYZxyz(15.7626, 8.1159, 39.7579)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822AC #56AC22
analogous
#3322AC #7822AC #AC229B
triadic
#7822AC #AC7822 #22AC78
tetradic
#7822AC #AC3322 #56AC22 #229BAC
square
#7822AC #AC3322 #56AC22 #229BAC
split-complementary
#7822AC #9BAC22 #22AC33
monochromatic
#310E46 #541879 #7822AC #9A34D7 #B367E1

Accessibility & contrast

On white

8.01
#7822AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7822AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7822AC#FFFFFF#000000##FFFFFF
##7822AC1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#704668
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7822ac;
/* rgb */ color: rgb(120, 34, 172);
/* oklch */ color: oklch(45.9% 0.204 308.3);
Tailwind
colors: {
  custom: {
    50: '#a468c6',
    500: '#7822ac',
    950: '#000000',
  },
}
SCSS
$custom: #7822ac;
$custom-light: #a468c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7822ac",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 277.391,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45943,
    "c": 0.20426,
    "h": 308.3
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#7822AC
secondary
#89C763
accent
#EA3E7F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7822AC

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

Preview Lab → · Contrast checker → · Palette generator →

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