#6820A6#6820A6

#6820A6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.2% C 0.197 H 303.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#6820A6
RGBrgb(104, 32, 166)
HSLhsl(272, 68%, 39%)
HSVhsv(272, 81%, 65%)
CMYKcmyk(37.3%, 80.7%, 0%, 34.9%)
CIE-LABlab(31.18, 54.95, -57.81)
CIE-LCHlch(31.18, 79.76, 313.55°)
OKLaboklab(43.19% 0.1071 -0.165)
OKLCHoklch(43.19% 0.197 303)
XYZxyz(13.1067, 6.7292, 36.6774)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820A6 #5EA620
analogous
#2520A6 #6820A6 #A620A1
triadic
#6820A6 #A66820 #20A668
tetradic
#6820A6 #A62520 #5EA620 #20A1A6
square
#6820A6 #A62520 #5EA620 #20A1A6
split-complementary
#6820A6 #A1A620 #20A625
monochromatic
#280C3F #481673 #6820A6 #882DD6 #A560E0

Accessibility & contrast

On white

8.95
#6820A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6820A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6820A6#FFFFFF#000000##FFFFFF
##6820A61.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#5B4564
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6820a6;
/* rgb */ color: rgb(104, 32, 166);
/* oklch */ color: oklch(43.2% 0.197 303.0);
Tailwind
colors: {
  custom: {
    50: '#9965c1',
    500: '#6820a6',
    950: '#000000',
  },
}
SCSS
$custom: #6820a6;
$custom-light: #9965c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6820a6",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 272.239,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43187,
    "c": 0.1967,
    "h": 303
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#6820A6
secondary
#8DC55D
accent
#EB3D8D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6820A6

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

Preview Lab → · Contrast checker → · Palette generator →

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