#6820AA#6820AA

#6820AA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.201 H 301.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#6820AA
RGBrgb(104, 32, 170)
HSLhsl(271, 68%, 40%)
HSVhsv(271, 81%, 67%)
CMYKcmyk(38.8%, 81.2%, 0%, 33.3%)
CIE-LABlab(31.53, 55.88, -59.65)
CIE-LCHlch(31.53, 81.74, 313.13°)
OKLaboklab(43.53% 0.1059 -0.1704)
OKLCHoklch(43.53% 0.201 301.9)
XYZxyz(13.4794, 6.8783, 38.6399)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820AA #62AA20
analogous
#2320AA #6820AA #AA20A7
triadic
#6820AA #AA6820 #20AA68
tetradic
#6820AA #AA2320 #62AA20 #20A7AA
square
#6820AA #AA2320 #62AA20 #20A7AA
split-complementary
#6820AA #A7AA20 #20AA23
monochromatic
#290D43 #481676 #6820AA #872FD8 #A563E2

Accessibility & contrast

On white

8.84
#6820AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6820AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6820AA
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6820AA#FFFFFF#000000##FFFFFF
##6820AA1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#594666
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6820aa;
/* rgb */ color: rgb(104, 32, 170);
/* oklch */ color: oklch(43.5% 0.201 301.9);
Tailwind
colors: {
  custom: {
    50: '#9a65c4',
    500: '#6820aa',
    950: '#000000',
  },
}
SCSS
$custom: #6820aa;
$custom-light: #9a65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6820aa",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 170
  },
  "hsl": {
    "h": 271.304,
    "s": 68.317,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43534,
    "c": 0.20064,
    "h": 301.9
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#6820AA
secondary
#91C75F
accent
#EB3D90
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6820AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6820AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva