#6721AA#6721AA

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

Color values

HEX#6721AA
RGBrgb(103, 33, 170)
HSLhsl(271, 67%, 40%)
HSVhsv(271, 81%, 67%)
CMYKcmyk(39.4%, 80.6%, 0%, 33.3%)
CIE-LABlab(31.52, 55.36, -59.68)
CIE-LCHlch(31.52, 81.40, 312.85°)
OKLaboklab(43.5% 0.1037 -0.1705)
OKLCHoklch(43.5% 0.2 301.3)
XYZxyz(13.3913, 6.8735, 38.6436)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6721AA #64AA21
analogous
#2221AA #6721AA #AA21A9
triadic
#6721AA #AA6721 #21AA67
tetradic
#6721AA #AA2221 #64AA21 #21A9AA
square
#6721AA #AA2221 #64AA21 #21A9AA
split-complementary
#6721AA #A9AA21 #21AA22
monochromatic
#290D43 #481777 #6721AA #8631D7 #A464E1

Accessibility & contrast

On white

8.84
#6721AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6721AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6721AA
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6721AA#FFFFFF#000000##FFFFFF
##6721AA1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#584766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6721aa;
/* rgb */ color: rgb(103, 33, 170);
/* oklch */ color: oklch(43.5% 0.200 301.3);
Tailwind
colors: {
  custom: {
    50: '#9966c4',
    500: '#6721aa',
    950: '#000000',
  },
}
SCSS
$custom: #6721aa;
$custom-light: #9966c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6721aa",
  "rgb": {
    "r": 103,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 270.657,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43497,
    "c": 0.19956,
    "h": 301.3
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6721AA

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

Preview Lab → · Contrast checker → · Palette generator →

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