#7821AA#7821AA

#7821AA is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.203 H 309.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7821AA
RGBrgb(120, 33, 170)
HSLhsl(278, 67%, 40%)
HSVhsv(278, 81%, 67%)
CMYKcmyk(29.4%, 80.6%, 0%, 33.3%)
CIE-LABlab(33.95, 58.13, -55.61)
CIE-LCHlch(33.95, 80.45, 316.27°)
OKLaboklab(45.7% 0.128 -0.158)
OKLCHoklch(45.7% 0.203 309)
XYZxyz(15.5438, 7.9834, 38.7445)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7821AA #53AA21
analogous
#3321AA #7821AA #AA2198
triadic
#7821AA #AA7821 #21AA78
tetradic
#7821AA #AA3321 #53AA21 #2198AA
square
#7821AA #AA3321 #53AA21 #2198AA
split-complementary
#7821AA #98AA21 #21AA33
monochromatic
#300D43 #541777 #7821AA #9B31D7 #B464E1

Accessibility & contrast

On white

8.09
#7821AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7821AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7821AA
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7821AA#FFFFFF#000000##FFFFFF
##7821AA1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.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: #7821aa;
/* rgb */ color: rgb(120, 33, 170);
/* oklch */ color: oklch(45.7% 0.203 309.0);
Tailwind
colors: {
  custom: {
    50: '#a468c4',
    500: '#7821aa',
    950: '#000000',
  },
}
SCSS
$custom: #7821aa;
$custom-light: #a468c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7821aa",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 278.102,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.20333,
    "h": 309
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#7821AA
secondary
#86C661
accent
#EA3D7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7821AA

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

Preview Lab → · Contrast checker → · Palette generator →

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