#6A21AC#6A21AC

#6A21AC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.0% C 0.202 H 302.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#6A21AC
RGBrgb(106, 33, 172)
HSLhsl(272, 68%, 40%)
HSVhsv(272, 81%, 67%)
CMYKcmyk(38.4%, 80.8%, 0%, 32.5%)
CIE-LABlab(32.10, 56.30, -59.90)
CIE-LCHlch(32.10, 82.20, 313.22°)
OKLaboklab(44.05% 0.1075 -0.1711)
OKLCHoklch(44.05% 0.202 302.1)
XYZxyz(13.9323, 7.1304, 39.6640)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A21AC #63AC21
analogous
#2521AC #6A21AC #AC21A8
triadic
#6A21AC #AC6A21 #21AC6A
tetradic
#6A21AC #AC2521 #63AC21 #21A8AC
square
#6A21AC #AC2521 #63AC21 #21A8AC
split-complementary
#6A21AC #A8AC21 #21AC25
monochromatic
#2B0D45 #4A1779 #6A21AC #8932D8 #A766E2

Accessibility & contrast

On white

8.66
#6A21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6A21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A21AC
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A21AC#FFFFFF#000000##FFFFFF
##6A21AC1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#5C4767
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a21ac;
/* rgb */ color: rgb(106, 33, 172);
/* oklch */ color: oklch(44.0% 0.202 302.1);
Tailwind
colors: {
  custom: {
    50: '#9b66c6',
    500: '#6a21ac',
    950: '#000000',
  },
}
SCSS
$custom: #6a21ac;
$custom-light: #9b66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a21ac",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 271.511,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44045,
    "c": 0.20205,
    "h": 302.1
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#6A21AC
secondary
#92C762
accent
#EB3D90
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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