#7821AC#7821AC

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

Color values

HEX#7821AC
RGBrgb(120, 33, 172)
HSLhsl(278, 68%, 40%)
HSVhsv(278, 81%, 67%)
CMYKcmyk(30.2%, 80.8%, 0%, 32.5%)
CIE-LABlab(34.11, 58.56, -56.55)
CIE-LCHlch(34.11, 81.41, 316.00°)
OKLaboklab(45.86% 0.1275 -0.1607)
OKLCHoklch(45.86% 0.205 308.4)
XYZxyz(15.7344, 8.0596, 39.7485)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7821AC #55AC21
analogous
#3221AC #7821AC #AC219A
triadic
#7821AC #AC7821 #21AC78
tetradic
#7821AC #AC3221 #55AC21 #219AAC
square
#7821AC #AC3221 #55AC21 #219AAC
split-complementary
#7821AC #9AAC21 #21AC32
monochromatic
#300D45 #541779 #7821AC #9A32D8 #B366E2

Accessibility & contrast

On white

8.04
#7821AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7821AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7821AC#FFFFFF#000000##FFFFFF
##7821AC1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7821ac;
/* rgb */ color: rgb(120, 33, 172);
/* oklch */ color: oklch(45.9% 0.205 308.4);
Tailwind
colors: {
  custom: {
    50: '#a468c6',
    500: '#7821ac',
    950: '#000000',
  },
}
SCSS
$custom: #7821ac;
$custom-light: #a468c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7821ac",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 277.554,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.20517,
    "h": 308.4
  },
  "luminance": 0.08059
}

Semantic roles & 50–950 ramp

primary
#7821AC
secondary
#88C762
accent
#EB3D7E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7821AC

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

Preview Lab → · Contrast checker → · Palette generator →

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