#6221AA#6221AA

#6221AA is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.9% C 0.199 H 298.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#6221AA
RGBrgb(98, 33, 170)
HSLhsl(268, 67%, 40%)
HSVhsv(268, 81%, 67%)
CMYKcmyk(42.4%, 80.6%, 0%, 33.3%)
CIE-LABlab(30.85, 54.59, -60.80)
CIE-LCHlch(30.85, 81.71, 311.92°)
OKLaboklab(42.89% 0.0962 -0.174)
OKLCHoklch(42.89% 0.199 298.9)
XYZxyz(12.8347, 6.5865, 38.6175)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6221AA #69AA21
analogous
#2125AA #6221AA #A721AA
triadic
#6221AA #AA6221 #21AA62
tetradic
#6221AA #AA2125 #69AA21 #21AAA7
square
#6221AA #AA2125 #69AA21 #21AAA7
split-complementary
#6221AA #AAA721 #25AA21
monochromatic
#270D43 #441777 #6221AA #8031D7 #A064E1

Accessibility & contrast

On white

9.06
#6221AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6221AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6221AA
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6221AA#FFFFFF#000000##FFFFFF
##6221AA1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#504866
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6221aa;
/* rgb */ color: rgb(98, 33, 170);
/* oklch */ color: oklch(42.9% 0.199 298.9);
Tailwind
colors: {
  custom: {
    50: '#9665c4',
    500: '#6221aa',
    950: '#000000',
  },
}
SCSS
$custom: #6221aa;
$custom-light: #9665c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6221aa",
  "rgb": {
    "r": 98,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 268.467,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42886,
    "c": 0.19881,
    "h": 298.9
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#6221AA
secondary
#96C661
accent
#EA3D98
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6221AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6221AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva