#6C21AA#6C21AA

#6C21AA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.1% C 0.200 H 303.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#6C21AA
RGBrgb(108, 33, 170)
HSLhsl(273, 67%, 40%)
HSVhsv(273, 81%, 67%)
CMYKcmyk(36.5%, 80.6%, 0%, 33.3%)
CIE-LABlab(32.21, 56.15, -58.52)
CIE-LCHlch(32.21, 81.10, 313.82°)
OKLaboklab(44.13% 0.111 -0.1669)
OKLCHoklch(44.13% 0.2 303.6)
XYZxyz(13.9822, 7.1782, 38.6713)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C21AA #5FAA21
analogous
#2821AA #6C21AA #AA21A3
triadic
#6C21AA #AA6C21 #21AA6C
tetradic
#6C21AA #AA2821 #5FAA21 #21A3AA
square
#6C21AA #AA2821 #5FAA21 #21A3AA
split-complementary
#6C21AA #A3AA21 #21AA28
monochromatic
#2B0D43 #4B1777 #6C21AA #8C31D7 #A964E1

Accessibility & contrast

On white

8.62
#6C21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6C21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C21AA
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C21AA#FFFFFF#000000##FFFFFF
##6C21AA1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c21aa;
/* rgb */ color: rgb(108, 33, 170);
/* oklch */ color: oklch(44.1% 0.200 303.6);
Tailwind
colors: {
  custom: {
    50: '#9c66c4',
    500: '#6c21aa',
    950: '#000000',
  },
}
SCSS
$custom: #6c21aa;
$custom-light: #9c66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c21aa",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 272.847,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44126,
    "c": 0.20048,
    "h": 303.6
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#6C21AA
secondary
#8FC661
accent
#EA3D8C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6C21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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