#7821C2#7821C2

#7821C2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.7% C 0.226 H 302.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7821C2
RGBrgb(120, 33, 194)
HSLhsl(272, 71%, 45%)
HSVhsv(272, 83%, 76%)
CMYKcmyk(38.1%, 83%, 0%, 23.9%)
CIE-LABlab(35.94, 63.39, -66.59)
CIE-LCHlch(35.94, 91.94, 313.59°)
OKLaboklab(47.7% 0.1211 -0.1902)
OKLCHoklch(47.7% 0.226 302.5)
XYZxyz(18.0248, 8.9758, 51.8114)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7821C2 #6BC221
analogous
#2721C2 #7821C2 #C221BC
triadic
#7821C2 #C27821 #21C278
tetradic
#7821C2 #C22721 #6BC221 #21BCC2
square
#7821C2 #C22721 #6BC221 #21BCC2
split-complementary
#7821C2 #BCC221 #21C227
monochromatic
#370F59 #58188E #7821C2 #9641DF #B376E8

Accessibility & contrast

On white

7.51
#7821C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7821C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7821C2#FFFFFF#000000##FFFFFF
##7821C21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#684F74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7821c2;
/* rgb */ color: rgb(120, 33, 194);
/* oklch */ color: oklch(47.7% 0.226 302.5);
Tailwind
colors: {
  custom: {
    50: '#a669d6',
    500: '#7821c2',
    950: '#000000',
  },
}
SCSS
$custom: #7821c2;
$custom-light: #a669d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7821c2",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 272.422,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47699,
    "c": 0.22553,
    "h": 302.5
  },
  "luminance": 0.08976
}

Semantic roles & 50–950 ramp

primary
#7821C2
secondary
#9CCF70
accent
#EE3A8D
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7821C2

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

Preview Lab → · Contrast checker → · Palette generator →

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