#6B22A3#6B22A3

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

Color values

HEX#6B22A3
RGBrgb(107, 34, 163)
HSLhsl(274, 65%, 39%)
HSVhsv(274, 79%, 64%)
CMYKcmyk(34.4%, 79.1%, 0%, 36.1%)
CIE-LABlab(31.61, 54.00, -55.28)
CIE-LCHlch(31.61, 77.28, 314.33°)
OKLaboklab(43.5% 0.1107 -0.1575)
OKLCHoklch(43.5% 0.192 305.1)
XYZxyz(13.2448, 6.9143, 35.2801)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22A3 #5AA322
analogous
#2A22A3 #6B22A3 #A3229A
triadic
#6B22A3 #A36B22 #22A36B
tetradic
#6B22A3 #A32A22 #5AA322 #229AA3
square
#6B22A3 #A32A22 #5AA322 #229AA3
split-complementary
#6B22A3 #9AA322 #22A32A
monochromatic
#290D3E #4A1770 #6B22A3 #8C2FD4 #A861DE

Accessibility & contrast

On white

8.81
#6B22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6B22A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B22A3
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B22A3#FFFFFF#000000##FFFFFF
##6B22A31.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#604462
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b22a3;
/* rgb */ color: rgb(107, 34, 163);
/* oklch */ color: oklch(43.5% 0.192 305.1);
Tailwind
colors: {
  custom: {
    50: '#9b66bf',
    500: '#6b22a3',
    950: '#000000',
  },
}
SCSS
$custom: #6b22a3;
$custom-light: #9b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22a3",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 273.953,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43497,
    "c": 0.19248,
    "h": 305.1
  },
  "luminance": 0.06914
}

Semantic roles & 50–950 ramp

primary
#6B22A3
secondary
#8AC35E
accent
#E83F89
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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