#6A22A6#6A22A6

#6A22A6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.195 H 303.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#6A22A6
RGBrgb(106, 34, 166)
HSLhsl(273, 66%, 39%)
HSVhsv(273, 80%, 65%)
CMYKcmyk(36.1%, 79.5%, 0%, 34.9%)
CIE-LABlab(31.72, 54.53, -56.92)
CIE-LCHlch(31.72, 78.83, 313.77°)
OKLaboklab(43.62% 0.1084 -0.1623)
OKLCHoklch(43.62% 0.195 303.7)
XYZxyz(13.3972, 6.9614, 36.7069)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A22A6 #5EA622
analogous
#2822A6 #6A22A6 #A622A0
triadic
#6A22A6 #A66A22 #22A66A
tetradic
#6A22A6 #A62822 #5EA622 #22A0A6
square
#6A22A6 #A62822 #5EA622 #22A0A6
split-complementary
#6A22A6 #A0A622 #22A628
monochromatic
#290D40 #4A1873 #6A22A6 #8A30D5 #A763DF

Accessibility & contrast

On white

8.78
#6A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6A22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A22A6
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A22A6#FFFFFF#000000##FFFFFF
##6A22A61.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#5E4564
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a22a6;
/* rgb */ color: rgb(106, 34, 166);
/* oklch */ color: oklch(43.6% 0.195 303.7);
Tailwind
colors: {
  custom: {
    50: '#9b66c1',
    500: '#6a22a6',
    950: '#000000',
  },
}
SCSS
$custom: #6a22a6;
$custom-light: #9b66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a22a6",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 272.727,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4362,
    "c": 0.19522,
    "h": 303.7
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#6A22A6
secondary
#8DC45F
accent
#E93F8C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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