#6A20AC#6A20AC

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

Color values

HEX#6A20AC
RGBrgb(106, 32, 172)
HSLhsl(272, 69%, 40%)
HSVhsv(272, 81%, 67%)
CMYKcmyk(38.4%, 81.4%, 0%, 32.5%)
CIE-LABlab(31.98, 56.66, -60.10)
CIE-LCHlch(31.98, 82.60, 313.31°)
OKLaboklab(43.96% 0.1082 -0.1717)
OKLCHoklch(43.96% 0.203 302.2)
XYZxyz(13.9050, 7.0757, 39.6549)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A20AC #62AC20
analogous
#2420AC #6A20AC #AC20A8
triadic
#6A20AC #AC6A20 #20AC6A
tetradic
#6A20AC #AC2420 #62AC20 #20A8AC
square
#6A20AC #AC2420 #62AC20 #20A8AC
split-complementary
#6A20AC #A8AC20 #20AC24
monochromatic
#2A0D45 #4A1678 #6A20AC #8931D9 #A764E2

Accessibility & contrast

On white

8.69
#6A20AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6A20AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A20AC
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A20AC#FFFFFF#000000##FFFFFF
##6A20AC1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.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: #6a20ac;
/* rgb */ color: rgb(106, 32, 172);
/* oklch */ color: oklch(44.0% 0.203 302.2);
Tailwind
colors: {
  custom: {
    50: '#9b66c6',
    500: '#6a20ac',
    950: '#000000',
  },
}
SCSS
$custom: #6a20ac;
$custom-light: #9b66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a20ac",
  "rgb": {
    "r": 106,
    "g": 32,
    "b": 172
  },
  "hsl": {
    "h": 271.714,
    "s": 68.627,
    "l": 40
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.20295,
    "h": 302.2
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#6A20AC
secondary
#91C760
accent
#EB3C8F
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A20AC

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

Preview Lab → · Contrast checker → · Palette generator →

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