#6C22A4#6C22A4

#6C22A4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.194 H 305.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#6C22A4
RGBrgb(108, 34, 164)
HSLhsl(274, 66%, 39%)
HSVhsv(274, 79%, 64%)
CMYKcmyk(34.1%, 79.3%, 0%, 35.7%)
CIE-LABlab(31.84, 54.40, -55.51)
CIE-LCHlch(31.84, 77.73, 314.42°)
OKLaboklab(43.71% 0.1118 -0.1581)
OKLCHoklch(43.71% 0.194 305.3)
XYZxyz(13.4557, 7.0126, 35.7595)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C22A4 #5AA422
analogous
#2B22A4 #6C22A4 #A4229B
triadic
#6C22A4 #A46C22 #22A46C
tetradic
#6C22A4 #A42B22 #5AA422 #229BA4
square
#6C22A4 #A42B22 #5AA422 #229BA4
split-complementary
#6C22A4 #9BA422 #22A42B
monochromatic
#290D3F #4B1771 #6C22A4 #8D2FD4 #A962DE

Accessibility & contrast

On white

8.74
#6C22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6C22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C22A4
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C22A4#FFFFFF#000000##FFFFFF
##6C22A41.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#614463
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c22a4;
/* rgb */ color: rgb(108, 34, 164);
/* oklch */ color: oklch(43.7% 0.194 305.3);
Tailwind
colors: {
  custom: {
    50: '#9c66c0',
    500: '#6c22a4',
    950: '#000000',
  },
}
SCSS
$custom: #6c22a4;
$custom-light: #9c66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c22a4",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 274.154,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4371,
    "c": 0.19368,
    "h": 305.3
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#6C22A4
secondary
#8AC45E
accent
#E93F88
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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