#6820A8#6820A8

#6820A8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.4% C 0.199 H 302.4°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#6820A8
RGBrgb(104, 32, 168)
HSLhsl(272, 68%, 39%)
HSVhsv(272, 81%, 66%)
CMYKcmyk(38.1%, 81%, 0%, 34.1%)
CIE-LABlab(31.35, 55.41, -58.73)
CIE-LCHlch(31.35, 80.75, 313.33°)
OKLaboklab(43.36% 0.1065 -0.1677)
OKLCHoklch(43.36% 0.199 302.4)
XYZxyz(13.2916, 6.8032, 37.6511)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820A8 #60A820
analogous
#2420A8 #6820A8 #A820A4
triadic
#6820A8 #A86820 #20A868
tetradic
#6820A8 #A82420 #60A820 #20A4A8
square
#6820A8 #A82420 #60A820 #20A4A8
split-complementary
#6820A8 #A4A820 #20A824
monochromatic
#280C41 #481675 #6820A8 #882ED7 #A561E1

Accessibility & contrast

On white

8.90
#6820A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6820A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6820A8#FFFFFF#000000##FFFFFF
##6820A81.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#5A4665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6820a8;
/* rgb */ color: rgb(104, 32, 168);
/* oklch */ color: oklch(43.4% 0.199 302.4);
Tailwind
colors: {
  custom: {
    50: '#9a65c3',
    500: '#6820a8',
    950: '#000000',
  },
}
SCSS
$custom: #6820a8;
$custom-light: #9a65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6820a8",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 271.765,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4336,
    "c": 0.19867,
    "h": 302.4
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#6820A8
secondary
#8FC65E
accent
#EB3D8F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0613
muted
#7E7A82

Preview Lab

Preview with #6820A8

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

Preview Lab → · Contrast checker → · Palette generator →

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