#6A22AA#6A22AA

#6A22AA is a dark, vivid violet. Relative luminance 0.071; OKLCH L 44.0% C 0.199 H 302.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6A22AA
RGBrgb(106, 34, 170)
HSLhsl(272, 67%, 40%)
HSVhsv(272, 80%, 67%)
CMYKcmyk(37.6%, 80%, 0%, 33.3%)
CIE-LABlab(32.06, 55.46, -58.78)
CIE-LCHlch(32.06, 80.81, 313.34°)
OKLaboklab(43.96% 0.1073 -0.1678)
OKLCHoklch(43.96% 0.199 302.6)
XYZxyz(13.7698, 7.1105, 38.6694)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A22AA #62AA22
analogous
#2622AA #6A22AA #AA22A6
triadic
#6A22AA #AA6A22 #22AA6A
tetradic
#6A22AA #AA2622 #62AA22 #22A6AA
square
#6A22AA #AA2622 #62AA22 #22A6AA
split-complementary
#6A22AA #A6AA22 #22AA26
monochromatic
#2A0E44 #4A1877 #6A22AA #8933D6 #A766E0

Accessibility & contrast

On white

8.67
#6A22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A22AA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A22AA#FFFFFF#000000##FFFFFF
##6A22AA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a22aa;
/* rgb */ color: rgb(106, 34, 170);
/* oklch */ color: oklch(44.0% 0.199 302.6);
Tailwind
colors: {
  custom: {
    50: '#9b66c4',
    500: '#6a22aa',
    950: '#000000',
  },
}
SCSS
$custom: #6a22aa;
$custom-light: #9b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a22aa",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 271.765,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.43961,
    "c": 0.19917,
    "h": 302.6
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#6A22AA
secondary
#91C662
accent
#EA3E8F
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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