#6A22AC#6A22AC

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

Color values

HEX#6A22AC
RGBrgb(106, 34, 172)
HSLhsl(271, 67%, 40%)
HSVhsv(271, 80%, 67%)
CMYKcmyk(38.4%, 80.2%, 0%, 32.5%)
CIE-LABlab(32.23, 55.93, -59.70)
CIE-LCHlch(32.23, 81.80, 313.13°)
OKLaboklab(44.13% 0.1067 -0.1705)
OKLCHoklch(44.13% 0.201 302)
XYZxyz(13.9605, 7.1867, 39.6734)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A22AC #64AC22
analogous
#2522AC #6A22AC #AC22A9
triadic
#6A22AC #AC6A22 #22AC6A
tetradic
#6A22AC #AC2522 #64AC22 #22A9AC
square
#6A22AC #AC2522 #64AC22 #22A9AC
split-complementary
#6A22AC #A9AC22 #22AC25
monochromatic
#2B0E46 #4B1879 #6A22AC #8934D7 #A767E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A22AC#FFFFFF#000000##FFFFFF
##6A22AC1.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)
#004BB0
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#5C4868
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a22ac;
/* rgb */ color: rgb(106, 34, 172);
/* oklch */ color: oklch(44.1% 0.201 302.0);
Tailwind
colors: {
  custom: {
    50: '#9b66c6',
    500: '#6a22ac',
    950: '#000000',
  },
}
SCSS
$custom: #6a22ac;
$custom-light: #9b66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a22ac",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 271.304,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44133,
    "c": 0.20114,
    "h": 302
  },
  "luminance": 0.07187
}

Semantic roles & 50–950 ramp

primary
#6A22AC
secondary
#93C763
accent
#EA3E90
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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