#6C21AE#6C21AE

#6C21AE is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.5% C 0.204 H 302.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#6C21AE
RGBrgb(108, 33, 174)
HSLhsl(272, 68%, 41%)
HSVhsv(272, 81%, 68%)
CMYKcmyk(37.9%, 81%, 0%, 31.8%)
CIE-LABlab(32.55, 57.07, -60.36)
CIE-LCHlch(32.55, 83.07, 313.40°)
OKLaboklab(44.47% 0.1098 -0.1723)
OKLCHoklch(44.47% 0.204 302.5)
XYZxyz(14.3663, 7.3318, 40.6945)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C21AE #63AE21
analogous
#2521AE #6C21AE #AE21A9
triadic
#6C21AE #AE6C21 #21AE6C
tetradic
#6C21AE #AE2521 #63AE21 #21A9AE
square
#6C21AE #AE2521 #63AE21 #21A9AE
split-complementary
#6C21AE #A9AE21 #21AE25
monochromatic
#2C0D47 #4C177B #6C21AE #8B34D8 #A967E2

Accessibility & contrast

On white

8.51
#6C21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6C21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C21AE
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C21AE#FFFFFF#000000##FFFFFF
##6C21AE1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#5E4869
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c21ae;
/* rgb */ color: rgb(108, 33, 174);
/* oklch */ color: oklch(44.5% 0.204 302.5);
Tailwind
colors: {
  custom: {
    50: '#9d66c7',
    500: '#6c21ae',
    950: '#000000',
  },
}
SCSS
$custom: #6c21ae;
$custom-light: #9d66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c21ae",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 271.915,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44469,
    "c": 0.20437,
    "h": 302.5
  },
  "luminance": 0.07332
}

Semantic roles & 50–950 ramp

primary
#6C21AE
secondary
#92C863
accent
#EB3D8E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6C21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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