#7821D4#7821D4

#7821D4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 49.3% C 0.242 H 298.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7821D4
RGBrgb(120, 33, 212)
HSLhsl(269, 73%, 48%)
HSVhsv(269, 84%, 83%)
CMYKcmyk(43.4%, 84.4%, 0%, 16.9%)
CIE-LABlab(37.54, 67.45, -74.44)
CIE-LCHlch(37.54, 100.45, 312.18°)
OKLaboklab(49.29% 0.115 -0.2133)
OKLCHoklch(49.29% 0.242 298.3)
XYZxyz(20.1702, 9.8339, 63.1100)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7821D4 #7DD421
analogous
#2124D4 #7821D4 #D121D4
triadic
#7821D4 #D47821 #21D478
tetradic
#7821D4 #D42124 #7DD421 #21D4D1
square
#7821D4 #D42124 #7DD421 #21D4D1
split-complementary
#7821D4 #D4D121 #24D421
monochromatic
#3C116A #5A199F #7821D4 #974FE4 #B684EC

Accessibility & contrast

On white

7.08
#7821D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7821D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7821D4#FFFFFF#000000##FFFFFF
##7821D41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#60587F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7821d4;
/* rgb */ color: rgb(120, 33, 212);
/* oklch */ color: oklch(49.3% 0.242 298.3);
Tailwind
colors: {
  custom: {
    50: '#a86ae3',
    500: '#7821d4',
    950: '#000000',
  },
}
SCSS
$custom: #7821d4;
$custom-light: #a86ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7821d4",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 212
  },
  "hsl": {
    "h": 269.162,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49294,
    "c": 0.24228,
    "h": 298.3
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#7821D4
secondary
#AAD57C
accent
#F03896
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7821D4

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

Preview Lab → · Contrast checker → · Palette generator →

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