#6B22A4#6B22A4

#6B22A4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.193 H 304.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6B22A4
RGBrgb(107, 34, 164)
HSLhsl(274, 66%, 39%)
HSVhsv(274, 79%, 64%)
CMYKcmyk(34.8%, 79.3%, 0%, 35.7%)
CIE-LABlab(31.69, 54.23, -55.75)
CIE-LCHlch(31.69, 77.78, 314.21°)
OKLaboklab(43.58% 0.1104 -0.1589)
OKLCHoklch(43.58% 0.193 304.8)
XYZxyz(13.3347, 6.9503, 35.7538)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22A4 #5BA422
analogous
#2A22A4 #6B22A4 #A4229C
triadic
#6B22A4 #A46B22 #22A46B
tetradic
#6B22A4 #A42A22 #5BA422 #229CA4
square
#6B22A4 #A42A22 #5BA422 #229CA4
split-complementary
#6B22A4 #9CA422 #22A42A
monochromatic
#290D3F #4A1771 #6B22A4 #8C2FD4 #A862DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B22A4#FFFFFF#000000##FFFFFF
##6B22A41.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)
#0049A8
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#604463
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b22a4;
/* rgb */ color: rgb(107, 34, 164);
/* oklch */ color: oklch(43.6% 0.193 304.8);
Tailwind
colors: {
  custom: {
    50: '#9b66c0',
    500: '#6b22a4',
    950: '#000000',
  },
}
SCSS
$custom: #6b22a4;
$custom-light: #9b66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22a4",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 273.692,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.19346,
    "h": 304.8
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#6B22A4
secondary
#8BC45E
accent
#E93F89
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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