#6C22B0#6C22B0

#6C22B0 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.205 H 301.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6C22B0
RGBrgb(108, 34, 176)
HSLhsl(271, 68%, 41%)
HSVhsv(271, 81%, 69%)
CMYKcmyk(38.6%, 80.7%, 0%, 31%)
CIE-LABlab(32.85, 57.18, -61.07)
CIE-LCHlch(32.85, 83.66, 313.12°)
OKLaboklab(44.73% 0.1085 -0.1744)
OKLCHoklch(44.73% 0.205 301.9)
XYZxyz(14.5909, 7.4667, 41.7384)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C22B0 #66B022
analogous
#2522B0 #6C22B0 #B022AD
triadic
#6C22B0 #B06C22 #22B06C
tetradic
#6C22B0 #B02522 #66B022 #22ADB0
square
#6C22B0 #B02522 #66B022 #22ADB0
split-complementary
#6C22B0 #ADB022 #22B025
monochromatic
#2D0E49 #4D187D #6C22B0 #8B37D8 #A96AE2

Accessibility & contrast

On white

8.42
#6C22B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6C22B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C22B0
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C22B0#FFFFFF#000000##FFFFFF
##6C22B01.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#5D496A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c22b0;
/* rgb */ color: rgb(108, 34, 176);
/* oklch */ color: oklch(44.7% 0.205 301.9);
Tailwind
colors: {
  custom: {
    50: '#9d67c9',
    500: '#6c22b0',
    950: '#000000',
  },
}
SCSS
$custom: #6c22b0;
$custom-light: #9d67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c22b0",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 176
  },
  "hsl": {
    "h": 271.268,
    "s": 67.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44728,
    "c": 0.20543,
    "h": 301.9
  },
  "luminance": 0.07467
}

Semantic roles & 50–950 ramp

primary
#6C22B0
secondary
#95C866
accent
#EA3D90
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6C22B0

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

Preview Lab → · Contrast checker → · Palette generator →

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