#6822A8#6822A8

#6822A8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.197 H 302.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#6822A8
RGBrgb(104, 34, 168)
HSLhsl(271, 66%, 40%)
HSVhsv(271, 80%, 66%)
CMYKcmyk(38.1%, 79.8%, 0%, 34.1%)
CIE-LABlab(31.61, 54.67, -58.31)
CIE-LCHlch(31.61, 79.93, 313.15°)
OKLaboklab(43.54% 0.1049 -0.1665)
OKLCHoklch(43.54% 0.197 302.2)
XYZxyz(13.3471, 6.9142, 37.6696)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6822A8 #62A822
analogous
#2522A8 #6822A8 #A822A5
triadic
#6822A8 #A86822 #22A868
tetradic
#6822A8 #A82522 #62A822 #22A5A8
square
#6822A8 #A82522 #62A822 #22A5A8
split-complementary
#6822A8 #A5A822 #22A825
monochromatic
#290D42 #481875 #6822A8 #8732D5 #A565E0

Accessibility & contrast

On white

8.81
#6822A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6822A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6822A8
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6822A8#FFFFFF#000000##FFFFFF
##6822A81.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#5A4665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6822a8;
/* rgb */ color: rgb(104, 34, 168);
/* oklch */ color: oklch(43.5% 0.197 302.2);
Tailwind
colors: {
  custom: {
    50: '#9966c3',
    500: '#6822a8',
    950: '#000000',
  },
}
SCSS
$custom: #6822a8;
$custom-light: #9966c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6822a8",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 271.343,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43538,
    "c": 0.19682,
    "h": 302.2
  },
  "luminance": 0.06914
}

Semantic roles & 50–950 ramp

primary
#6822A8
secondary
#91C561
accent
#E93F90
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0613
muted
#7E7A82

Preview Lab

Preview with #6822A8

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

Preview Lab → · Contrast checker → · Palette generator →

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