#6221A4#6221A4

#6221A4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.193 H 300.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#6221A4
RGBrgb(98, 33, 164)
HSLhsl(270, 66%, 39%)
HSVhsv(270, 80%, 64%)
CMYKcmyk(40.2%, 79.9%, 0%, 35.7%)
CIE-LABlab(30.31, 53.14, -58.05)
CIE-LCHlch(30.31, 78.70, 312.47°)
OKLaboklab(42.35% 0.098 -0.1659)
OKLCHoklch(42.35% 0.193 300.6)
XYZxyz(12.2800, 6.3646, 35.6963)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6221A4 #63A421
analogous
#2122A4 #6221A4 #A321A4
triadic
#6221A4 #A46221 #21A462
tetradic
#6221A4 #A42122 #63A421 #21A4A3
square
#6221A4 #A42122 #63A421 #21A4A3
split-complementary
#6221A4 #A4A321 #22A421
monochromatic
#250C3E #441771 #6221A4 #802DD5 #9F60DF

Accessibility & contrast

On white

9.24
#6221A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6221A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6221A4#FFFFFF#000000##FFFFFF
##6221A41.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#534563
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6221a4;
/* rgb */ color: rgb(98, 33, 164);
/* oklch */ color: oklch(42.4% 0.193 300.6);
Tailwind
colors: {
  custom: {
    50: '#9565c0',
    500: '#6221a4',
    950: '#000000',
  },
}
SCSS
$custom: #6221a4;
$custom-light: #9565c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6221a4",
  "rgb": {
    "r": 98,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 269.771,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42352,
    "c": 0.19272,
    "h": 300.6
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#6221A4
secondary
#91C45D
accent
#E93E95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6221A4

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

Preview Lab → · Contrast checker → · Palette generator →

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