#6B22A2#6B22A2

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

Color values

HEX#6B22A2
RGBrgb(107, 34, 162)
HSLhsl(274, 65%, 38%)
HSVhsv(274, 79%, 64%)
CMYKcmyk(34%, 79%, 0%, 36.5%)
CIE-LABlab(31.53, 53.77, -54.81)
CIE-LCHlch(31.53, 76.78, 314.45°)
OKLaboklab(43.41% 0.1109 -0.1561)
OKLCHoklch(43.41% 0.192 305.4)
XYZxyz(13.1556, 6.8786, 34.8101)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22A2 #59A222
analogous
#2B22A2 #6B22A2 #A22299
triadic
#6B22A2 #A26B22 #22A26B
tetradic
#6B22A2 #A22B22 #59A222 #2299A2
square
#6B22A2 #A22B22 #59A222 #2299A2
split-complementary
#6B22A2 #99A222 #22A22B
monochromatic
#280D3D #4A176F #6B22A2 #8C2ED3 #A861DE

Accessibility & contrast

On white

8.84
#6B22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B22A2
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B22A2#FFFFFF#000000##FFFFFF
##6B22A21.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b22a2;
/* rgb */ color: rgb(107, 34, 162);
/* oklch */ color: oklch(43.4% 0.192 305.4);
Tailwind
colors: {
  custom: {
    50: '#9b66be',
    500: '#6b22a2',
    950: '#000000',
  },
}
SCSS
$custom: #6b22a2;
$custom-light: #9b66be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22a2",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 274.219,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43414,
    "c": 0.1915,
    "h": 305.4
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#6B22A2
secondary
#89C35D
accent
#E84088
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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