#6B22A1#6B22A1

#6B22A1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.3% C 0.191 H 305.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#6B22A1
RGBrgb(107, 34, 161)
HSLhsl(274, 65%, 38%)
HSVhsv(274, 79%, 63%)
CMYKcmyk(33.5%, 78.9%, 0%, 36.9%)
CIE-LABlab(31.45, 53.54, -54.34)
CIE-LCHlch(31.45, 76.28, 314.58°)
OKLaboklab(43.33% 0.1112 -0.1547)
OKLCHoklch(43.33% 0.191 305.7)
XYZxyz(13.0670, 6.8432, 34.3438)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22A1 #58A122
analogous
#2B22A1 #6B22A1 #A12297
triadic
#6B22A1 #A16B22 #22A16B
tetradic
#6B22A1 #A12B22 #58A122 #2297A1
square
#6B22A1 #A12B22 #58A122 #2297A1
split-complementary
#6B22A1 #97A122 #22A12B
monochromatic
#280D3C #49176E #6B22A1 #8C2DD3 #A860DD

Accessibility & contrast

On white

8.87
#6B22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6B22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B22A1
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B22A1#FFFFFF#000000##FFFFFF
##6B22A11.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#614361
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b22a1;
/* rgb */ color: rgb(107, 34, 161);
/* oklch */ color: oklch(43.3% 0.191 305.7);
Tailwind
colors: {
  custom: {
    50: '#9b66be',
    500: '#6b22a1',
    950: '#000000',
  },
}
SCSS
$custom: #6b22a1;
$custom-light: #9b66be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22a1",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 274.488,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43332,
    "c": 0.19051,
    "h": 305.7
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#6B22A1
secondary
#88C25D
accent
#E84087
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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