#6821AA#6821AA

#6821AA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.6% C 0.200 H 301.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#6821AA
RGBrgb(104, 33, 170)
HSLhsl(271, 67%, 40%)
HSVhsv(271, 81%, 67%)
CMYKcmyk(38.8%, 80.6%, 0%, 33.3%)
CIE-LABlab(31.65, 55.52, -59.45)
CIE-LCHlch(31.65, 81.34, 313.04°)
OKLaboklab(43.62% 0.1051 -0.1698)
OKLCHoklch(43.62% 0.2 301.8)
XYZxyz(13.5067, 6.9330, 38.6490)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6821AA #63AA21
analogous
#2421AA #6821AA #AA21A8
triadic
#6821AA #AA6821 #21AA68
tetradic
#6821AA #AA2421 #63AA21 #21A8AA
square
#6821AA #AA2421 #63AA21 #21A8AA
split-complementary
#6821AA #A8AA21 #21AA24
monochromatic
#290D43 #491777 #6821AA #8731D7 #A564E1

Accessibility & contrast

On white

8.80
#6821AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6821AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6821AA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6821AA#FFFFFF#000000##FFFFFF
##6821AA1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#594766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6821aa;
/* rgb */ color: rgb(104, 33, 170);
/* oklch */ color: oklch(43.6% 0.200 301.8);
Tailwind
colors: {
  custom: {
    50: '#9a66c4',
    500: '#6821aa',
    950: '#000000',
  },
}
SCSS
$custom: #6821aa;
$custom-light: #9a66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6821aa",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 271.095,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43621,
    "c": 0.19973,
    "h": 301.8
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#6821AA
secondary
#92C661
accent
#EA3D91
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0613
muted
#7E7A82

Preview Lab

Preview with #6821AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6821AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva