#6A21AA#6A21AA

#6A21AA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.9% C 0.200 H 302.7°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#6A21AA
RGBrgb(106, 33, 170)
HSLhsl(272, 67%, 40%)
HSVhsv(272, 81%, 67%)
CMYKcmyk(37.6%, 80.6%, 0%, 33.3%)
CIE-LABlab(31.93, 55.83, -58.98)
CIE-LCHlch(31.93, 81.22, 313.43°)
OKLaboklab(43.87% 0.1081 -0.1684)
OKLCHoklch(43.87% 0.2 302.7)
XYZxyz(13.7417, 7.0541, 38.6600)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A21AA #61AA21
analogous
#2621AA #6A21AA #AA21A6
triadic
#6A21AA #AA6A21 #21AA6A
tetradic
#6A21AA #AA2621 #61AA21 #21A6AA
square
#6A21AA #AA2621 #61AA21 #21A6AA
split-complementary
#6A21AA #A6AA21 #21AA26
monochromatic
#2A0D43 #4A1777 #6A21AA #8A31D7 #A764E1

Accessibility & contrast

On white

8.71
#6A21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6A21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A21AA
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A21AA#FFFFFF#000000##FFFFFF
##6A21AA1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#5C4766
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a21aa;
/* rgb */ color: rgb(106, 33, 170);
/* oklch */ color: oklch(43.9% 0.200 302.7);
Tailwind
colors: {
  custom: {
    50: '#9b66c4',
    500: '#6a21aa',
    950: '#000000',
  },
}
SCSS
$custom: #6a21aa;
$custom-light: #9b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a21aa",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 271.971,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43872,
    "c": 0.20009,
    "h": 302.7
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#6A21AA
secondary
#90C661
accent
#EA3D8E
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A21AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6A21AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva