#6C22A6#6C22A6

#6C22A6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.196 H 304.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#6C22A6
RGBrgb(108, 34, 166)
HSLhsl(274, 66%, 39%)
HSVhsv(274, 80%, 65%)
CMYKcmyk(34.9%, 79.5%, 0%, 34.9%)
CIE-LABlab(32.00, 54.86, -56.45)
CIE-LCHlch(32.00, 78.72, 314.18°)
OKLaboklab(43.88% 0.1113 -0.1609)
OKLCHoklch(43.88% 0.196 304.7)
XYZxyz(13.6377, 7.0854, 36.7182)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C22A6 #5CA622
analogous
#2A22A6 #6C22A6 #A6229E
triadic
#6C22A6 #A66C22 #22A66C
tetradic
#6C22A6 #A62A22 #5CA622 #229EA6
square
#6C22A6 #A62A22 #5CA622 #229EA6
split-complementary
#6C22A6 #9EA622 #22A62A
monochromatic
#2A0D40 #4B1873 #6C22A6 #8D30D5 #A963DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C22A6#FFFFFF#000000##FFFFFF
##6C22A61.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)
#004AAA
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#614564
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c22a6;
/* rgb */ color: rgb(108, 34, 166);
/* oklch */ color: oklch(43.9% 0.196 304.7);
Tailwind
colors: {
  custom: {
    50: '#9c66c1',
    500: '#6c22a6',
    950: '#000000',
  },
}
SCSS
$custom: #6c22a6;
$custom-light: #9c66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c22a6",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 273.636,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43877,
    "c": 0.19564,
    "h": 304.7
  },
  "luminance": 0.07085
}

Semantic roles & 50–950 ramp

primary
#6C22A6
secondary
#8CC45F
accent
#E93F8A
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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