#6822AC#6822AC

#6822AC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.9% C 0.201 H 301.1°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#6822AC
RGBrgb(104, 34, 172)
HSLhsl(270, 67%, 40%)
HSVhsv(270, 80%, 67%)
CMYKcmyk(39.5%, 80.2%, 0%, 32.5%)
CIE-LABlab(31.96, 55.62, -60.15)
CIE-LCHlch(31.96, 81.92, 312.76°)
OKLaboklab(43.89% 0.1038 -0.1719)
OKLCHoklch(43.89% 0.201 301.1)
XYZxyz(13.7255, 7.0656, 39.6624)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6822AC #66AC22
analogous
#2322AC #6822AC #AC22AB
triadic
#6822AC #AC6822 #22AC68
tetradic
#6822AC #AC2322 #66AC22 #22ABAC
square
#6822AC #AC2322 #66AC22 #22ABAC
split-complementary
#6822AC #ABAC22 #22AC23
monochromatic
#2A0E46 #491879 #6822AC #8734D7 #A567E1

Accessibility & contrast

On white

8.70
#6822AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6822AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6822AC
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6822AC#FFFFFF#000000##FFFFFF
##6822AC1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#594868
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6822ac;
/* rgb */ color: rgb(104, 34, 172);
/* oklch */ color: oklch(43.9% 0.201 301.1);
Tailwind
colors: {
  custom: {
    50: '#9a66c6',
    500: '#6822ac',
    950: '#000000',
  },
}
SCSS
$custom: #6822ac;
$custom-light: #9a66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6822ac",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 270.435,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43885,
    "c": 0.2008,
    "h": 301.1
  },
  "luminance": 0.07066
}

Semantic roles & 50–950 ramp

primary
#6822AC
secondary
#94C763
accent
#EA3E93
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6822AC

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

Preview Lab → · Contrast checker → · Palette generator →

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