#6820A5#6820A5

#6820A5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.196 H 303.3°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#6820A5
RGBrgb(104, 32, 165)
HSLhsl(272, 68%, 39%)
HSVhsv(272, 81%, 65%)
CMYKcmyk(37%, 80.6%, 0%, 35.3%)
CIE-LABlab(31.10, 54.71, -57.35)
CIE-LCHlch(31.10, 79.26, 313.65°)
OKLaboklab(43.1% 0.1074 -0.1636)
OKLCHoklch(43.1% 0.196 303.3)
XYZxyz(13.0154, 6.6927, 36.1961)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820A5 #5DA520
analogous
#2520A5 #6820A5 #A5209F
triadic
#6820A5 #A56820 #20A568
tetradic
#6820A5 #A52520 #5DA520 #209FA5
square
#6820A5 #A52520 #5DA520 #209FA5
split-complementary
#6820A5 #9FA520 #20A525
monochromatic
#270C3E #481672 #6820A5 #882CD6 #A55FE0

Accessibility & contrast

On white

8.98
#6820A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6820A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6820A5#FFFFFF#000000##FFFFFF
##6820A51.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)
#0048A9
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#5B4463
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6820a5;
/* rgb */ color: rgb(104, 32, 165);
/* oklch */ color: oklch(43.1% 0.196 303.3);
Tailwind
colors: {
  custom: {
    50: '#9965c1',
    500: '#6820a5',
    950: '#000000',
  },
}
SCSS
$custom: #6820a5;
$custom-light: #9965c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6820a5",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 272.481,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43101,
    "c": 0.19572,
    "h": 303.3
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#6820A5
secondary
#8CC55C
accent
#EA3D8D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6820A5

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

Preview Lab → · Contrast checker → · Palette generator →

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