#6820A7#6820A7

#6820A7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.3% C 0.198 H 302.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#6820A7
RGBrgb(104, 32, 167)
HSLhsl(272, 68%, 39%)
HSVhsv(272, 81%, 65%)
CMYKcmyk(37.7%, 80.8%, 0%, 34.5%)
CIE-LABlab(31.27, 55.18, -58.27)
CIE-LCHlch(31.27, 80.25, 313.44°)
OKLaboklab(43.27% 0.1068 -0.1664)
OKLCHoklch(43.27% 0.198 302.7)
XYZxyz(13.1988, 6.7661, 37.1623)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820A7 #5FA720
analogous
#2520A7 #6820A7 #A720A3
triadic
#6820A7 #A76820 #20A768
tetradic
#6820A7 #A72520 #5FA720 #20A3A7
square
#6820A7 #A72520 #5FA720 #20A3A7
split-complementary
#6820A7 #A3A720 #20A725
monochromatic
#280C40 #481674 #6820A7 #882DD7 #A561E1

Accessibility & contrast

On white

8.92
#6820A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6820A7#FFFFFF#000000##FFFFFF
##6820A71.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#5B4564
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6820a7;
/* rgb */ color: rgb(104, 32, 167);
/* oklch */ color: oklch(43.3% 0.198 302.7);
Tailwind
colors: {
  custom: {
    50: '#9965c2',
    500: '#6820a7',
    950: '#000000',
  },
}
SCSS
$custom: #6820a7;
$custom-light: #9965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6820a7",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 272,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43273,
    "c": 0.19769,
    "h": 302.7
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#6820A7
secondary
#8EC55D
accent
#EB3D8E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6820A7

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

Preview Lab → · Contrast checker → · Palette generator →

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