#6B22A8#6B22A8

#6B22A8 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.197 H 303.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#6B22A8
RGBrgb(107, 34, 168)
HSLhsl(273, 66%, 40%)
HSVhsv(273, 80%, 66%)
CMYKcmyk(36.3%, 79.8%, 0%, 34.1%)
CIE-LABlab(32.03, 55.16, -57.62)
CIE-LCHlch(32.03, 79.76, 313.75°)
OKLaboklab(43.92% 0.1093 -0.1643)
OKLCHoklch(43.92% 0.197 303.6)
XYZxyz(13.7017, 7.0970, 37.6862)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B22A8 #5FA822
analogous
#2822A8 #6B22A8 #A822A2
triadic
#6B22A8 #A86B22 #22A86B
tetradic
#6B22A8 #A82822 #5FA822 #22A2A8
square
#6B22A8 #A82822 #5FA822 #22A2A8
split-complementary
#6B22A8 #A2A822 #22A828
monochromatic
#2A0D42 #4B1875 #6B22A8 #8B32D5 #A865E0

Accessibility & contrast

On white

8.68
#6B22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6B22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B22A8
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B22A8#FFFFFF#000000##FFFFFF
##6B22A81.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#5F4665
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b22a8;
/* rgb */ color: rgb(107, 34, 168);
/* oklch */ color: oklch(43.9% 0.197 303.6);
Tailwind
colors: {
  custom: {
    50: '#9b66c3',
    500: '#6b22a8',
    950: '#000000',
  },
}
SCSS
$custom: #6b22a8;
$custom-light: #9b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b22a8",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 272.687,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43917,
    "c": 0.19739,
    "h": 303.6
  },
  "luminance": 0.07097
}

Semantic roles & 50–950 ramp

primary
#6B22A8
secondary
#8EC561
accent
#E93F8C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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