#6822A2#6822A2

#6822A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.191 H 304.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#6822A2
RGBrgb(104, 34, 162)
HSLhsl(273, 65%, 38%)
HSVhsv(273, 79%, 64%)
CMYKcmyk(35.8%, 79%, 0%, 36.5%)
CIE-LABlab(31.10, 53.26, -55.52)
CIE-LCHlch(31.10, 76.93, 313.81°)
OKLaboklab(43.03% 0.1066 -0.1583)
OKLCHoklch(43.03% 0.191 304)
XYZxyz(12.8010, 6.6958, 34.7934)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6822A2 #5CA222
analogous
#2822A2 #6822A2 #A2229C
triadic
#6822A2 #A26822 #22A268
tetradic
#6822A2 #A22822 #5CA222 #229CA2
square
#6822A2 #A22822 #5CA222 #229CA2
split-complementary
#6822A2 #9CA222 #22A228
monochromatic
#270D3D #48176F #6822A2 #882ED3 #A561DE

Accessibility & contrast

On white

8.98
#6822A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6822A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6822A2
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6822A2#FFFFFF#000000##FFFFFF
##6822A21.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#5C4462
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6822a2;
/* rgb */ color: rgb(104, 34, 162);
/* oklch */ color: oklch(43.0% 0.191 304.0);
Tailwind
colors: {
  custom: {
    50: '#9966be',
    500: '#6822a2',
    950: '#000000',
  },
}
SCSS
$custom: #6822a2;
$custom-light: #9966be;
$custom-dark: #000000;
JSON
{
  "hex": "#6822a2",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 272.813,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43027,
    "c": 0.19084,
    "h": 304
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

primary
#6822A2
secondary
#8BC35D
accent
#E8408C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6822A2

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

Preview Lab → · Contrast checker → · Palette generator →

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