#6822A6#6822A6

#6822A6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.4% C 0.195 H 302.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#6822A6
RGBrgb(104, 34, 166)
HSLhsl(272, 66%, 39%)
HSVhsv(272, 80%, 65%)
CMYKcmyk(37.3%, 79.5%, 0%, 34.9%)
CIE-LABlab(31.44, 54.20, -57.39)
CIE-LCHlch(31.44, 78.93, 313.36°)
OKLaboklab(43.37% 0.1055 -0.1638)
OKLCHoklch(43.37% 0.195 302.8)
XYZxyz(13.1622, 6.8403, 36.6959)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6822A6 #60A622
analogous
#2622A6 #6822A6 #A622A2
triadic
#6822A6 #A66822 #22A668
tetradic
#6822A6 #A62622 #60A622 #22A2A6
square
#6822A6 #A62622 #60A622 #22A2A6
split-complementary
#6822A6 #A2A622 #22A626
monochromatic
#280D40 #481873 #6822A6 #8830D5 #A563DF

Accessibility & contrast

On white

8.87
#6822A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6822A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6822A6
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6822A6#FFFFFF#000000##FFFFFF
##6822A61.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#5B4564
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6822a6;
/* rgb */ color: rgb(104, 34, 166);
/* oklch */ color: oklch(43.4% 0.195 302.8);
Tailwind
colors: {
  custom: {
    50: '#9966c1',
    500: '#6822a6',
    950: '#000000',
  },
}
SCSS
$custom: #6822a6;
$custom-light: #9966c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6822a6",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 271.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43367,
    "c": 0.19482,
    "h": 302.8
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#6822A6
secondary
#8FC45F
accent
#E93F8F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6822A6

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

Preview Lab → · Contrast checker → · Palette generator →

#6822A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva