#6820B1#6820B1

#6820B1 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.2% C 0.208 H 300.0°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6820B1
RGBrgb(104, 32, 177)
HSLhsl(270, 69%, 41%)
HSVhsv(270, 82%, 69%)
CMYKcmyk(41.2%, 81.9%, 0%, 30.6%)
CIE-LABlab(32.15, 57.53, -62.83)
CIE-LCHlch(32.15, 85.19, 312.48°)
OKLaboklab(44.15% 0.1037 -0.1797)
OKLCHoklch(44.15% 0.208 300)
XYZxyz(14.1592, 7.1502, 42.2206)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6820B1 #69B120
analogous
#2020B1 #6820B1 #B020B1
triadic
#6820B1 #B16820 #20B168
tetradic
#6820B1 #B12020 #69B120 #20B1B0
square
#6820B1 #B12020 #69B120 #20B1B0
split-complementary
#6820B1 #B1B020 #20B120
monochromatic
#2B0D49 #4A177D #6820B1 #8734DA #A568E4

Accessibility & contrast

On white

8.64
#6820B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6820B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6820B1
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6820B1#FFFFFF#000000##FFFFFF
##6820B11.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#56496A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6820b1;
/* rgb */ color: rgb(104, 32, 177);
/* oklch */ color: oklch(44.2% 0.208 300.0);
Tailwind
colors: {
  custom: {
    50: '#9a66c9',
    500: '#6820b1',
    950: '#000000',
  },
}
SCSS
$custom: #6820b1;
$custom-light: #9a66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6820b1",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 269.793,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44152,
    "c": 0.20752,
    "h": 300
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#6820B1
secondary
#97C964
accent
#EC3C95
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6820B1

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

Preview Lab → · Contrast checker → · Palette generator →

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