#6C22A2#6C22A2

#6C22A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.192 H 305.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6C22A2
RGBrgb(108, 34, 162)
HSLhsl(275, 65%, 38%)
HSVhsv(275, 79%, 64%)
CMYKcmyk(33.3%, 79%, 0%, 36.5%)
CIE-LABlab(31.67, 53.95, -54.57)
CIE-LCHlch(31.67, 76.73, 314.67°)
OKLaboklab(43.55% 0.1124 -0.1554)
OKLCHoklch(43.55% 0.192 305.9)
XYZxyz(13.2765, 6.9409, 34.8157)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C22A2 #58A222
analogous
#2C22A2 #6C22A2 #A22298
triadic
#6C22A2 #A26C22 #22A26C
tetradic
#6C22A2 #A22C22 #58A222 #2298A2
square
#6C22A2 #A22C22 #58A222 #2298A2
split-complementary
#6C22A2 #98A222 #22A22C
monochromatic
#290D3D #4A176F #6C22A2 #8D2ED3 #A961DE

Accessibility & contrast

On white

8.79
#6C22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C22A2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C22A2#FFFFFF#000000##FFFFFF
##6C22A21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#624362
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6c22a2;
/* rgb */ color: rgb(108, 34, 162);
/* oklch */ color: oklch(43.5% 0.192 305.9);
Tailwind
colors: {
  custom: {
    50: '#9c66be',
    500: '#6c22a2',
    950: '#000000',
  },
}
SCSS
$custom: #6c22a2;
$custom-light: #9c66be;
$custom-dark: #000000;
JSON
{
  "hex": "#6c22a2",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 274.688,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43545,
    "c": 0.19173,
    "h": 305.9
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#6C22A2
secondary
#88C35D
accent
#E84087
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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