#7822D4#7822D4

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

Color values

HEX#7822D4
RGBrgb(120, 34, 212)
HSLhsl(269, 72%, 48%)
HSVhsv(269, 84%, 83%)
CMYKcmyk(43.4%, 84%, 0%, 16.9%)
CIE-LABlab(37.64, 67.15, -74.27)
CIE-LCHlch(37.64, 100.13, 312.12°)
OKLaboklab(49.36% 0.1144 -0.2128)
OKLCHoklch(49.36% 0.242 298.3)
XYZxyz(20.1983, 9.8902, 63.1194)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822D4 #7ED422
analogous
#2225D4 #7822D4 #D122D4
triadic
#7822D4 #D47822 #22D478
tetradic
#7822D4 #D42225 #7ED422 #22D4D1
square
#7822D4 #D42225 #7ED422 #22D4D1
split-complementary
#7822D4 #D4D122 #25D422
monochromatic
#3C116B #5A1A9F #7822D4 #9750E3 #B685EB

Accessibility & contrast

On white

7.05
#7822D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7822D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7822D4
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7822D4#FFFFFF#000000##FFFFFF
##7822D41.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7822d4;
/* rgb */ color: rgb(120, 34, 212);
/* oklch */ color: oklch(49.4% 0.242 298.3);
Tailwind
colors: {
  custom: {
    50: '#a86be3',
    500: '#7822d4',
    950: '#000000',
  },
}
SCSS
$custom: #7822d4;
$custom-light: #a86be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7822d4",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 212
  },
  "hsl": {
    "h": 268.989,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49364,
    "c": 0.24158,
    "h": 298.3
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#7822D4
secondary
#AAD57D
accent
#EF3997
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7822D4

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

Preview Lab → · Contrast checker → · Palette generator →

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