#6820AC#6820AC

#6820AC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.7% C 0.203 H 301.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#6820AC
RGBrgb(104, 32, 172)
HSLhsl(271, 69%, 40%)
HSVhsv(271, 81%, 67%)
CMYKcmyk(39.5%, 81.4%, 0%, 32.5%)
CIE-LABlab(31.70, 56.35, -60.57)
CIE-LCHlch(31.70, 82.73, 312.93°)
OKLaboklab(43.71% 0.1053 -0.1731)
OKLCHoklch(43.71% 0.203 301.3)
XYZxyz(13.6700, 6.9545, 39.6439)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820AC #64AC20
analogous
#2220AC #6820AC #AC20AA
triadic
#6820AC #AC6820 #20AC68
tetradic
#6820AC #AC2220 #64AC20 #20AAAC
square
#6820AC #AC2220 #64AC20 #20AAAC
split-complementary
#6820AC #AAAC20 #20AC22
monochromatic
#2A0D45 #491678 #6820AC #8731D9 #A564E2

Accessibility & contrast

On white

8.78
#6820AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6820AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6820AC#FFFFFF#000000##FFFFFF
##6820AC1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6820ac;
/* rgb */ color: rgb(104, 32, 172);
/* oklch */ color: oklch(43.7% 0.203 301.3);
Tailwind
colors: {
  custom: {
    50: '#9a65c6',
    500: '#6820ac',
    950: '#000000',
  },
}
SCSS
$custom: #6820ac;
$custom-light: #9a65c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6820ac",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 172
  },
  "hsl": {
    "h": 270.857,
    "s": 68.627,
    "l": 40
  },
  "oklch": {
    "l": 0.43709,
    "c": 0.2026,
    "h": 301.3
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#6820AC
secondary
#92C760
accent
#EB3C91
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6820AC

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

Preview Lab → · Contrast checker → · Palette generator →

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