#6C22A8#6C22A8

#6C22A8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.198 H 304.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6C22A8
RGBrgb(108, 34, 168)
HSLhsl(273, 66%, 40%)
HSVhsv(273, 80%, 66%)
CMYKcmyk(35.7%, 79.8%, 0%, 34.1%)
CIE-LABlab(32.17, 55.32, -57.38)
CIE-LCHlch(32.17, 79.71, 313.95°)
OKLaboklab(44.04% 0.1108 -0.1636)
OKLCHoklch(44.04% 0.198 304.1)
XYZxyz(13.8226, 7.1594, 37.6919)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C22A8 #5EA822
analogous
#2922A8 #6C22A8 #A822A1
triadic
#6C22A8 #A86C22 #22A86C
tetradic
#6C22A8 #A82922 #5EA822 #22A1A8
square
#6C22A8 #A82922 #5EA822 #22A1A8
split-complementary
#6C22A8 #A1A822 #22A829
monochromatic
#2B0D42 #4B1875 #6C22A8 #8C32D5 #A965E0

Accessibility & contrast

On white

8.64
#6C22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6C22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C22A8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C22A8#FFFFFF#000000##FFFFFF
##6C22A81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#604665
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6c22a8;
/* rgb */ color: rgb(108, 34, 168);
/* oklch */ color: oklch(44.0% 0.198 304.1);
Tailwind
colors: {
  custom: {
    50: '#9c67c3',
    500: '#6c22a8',
    950: '#000000',
  },
}
SCSS
$custom: #6c22a8;
$custom-light: #9c67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c22a8",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 273.134,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44044,
    "c": 0.1976,
    "h": 304.1
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#6C22A8
secondary
#8EC561
accent
#E93F8B
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6C22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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