#4221AA#4221AA

#4221AA is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.199 H 283.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4221AA
RGBrgb(66, 33, 170)
HSLhsl(254, 67%, 40%)
HSVhsv(254, 81%, 67%)
CMYKcmyk(61.2%, 80.6%, 0%, 33.3%)
CIE-LABlab(27.15, 50.39, -67.01)
CIE-LCHlch(27.15, 83.84, 306.94°)
OKLaboklab(39.48% 0.0466 -0.1932)
OKLCHoklch(39.48% 0.199 283.6)
XYZxyz(10.0441, 5.1476, 38.4867)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221AA #89AA21
analogous
#2144AA #4221AA #8721AA
triadic
#4221AA #AA4221 #21AA42
tetradic
#4221AA #AA2144 #89AA21 #21AA87
square
#4221AA #AA2144 #89AA21 #21AA87
split-complementary
#4221AA #AA8721 #44AA21
monochromatic
#1A0D43 #2E1777 #4221AA #5931D7 #8264E1

Accessibility & contrast

On white

10.35
#4221AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4221AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4221AA
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4221AA#FFFFFF#000000##FFFFFF
##4221AA1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4221aa;
/* rgb */ color: rgb(66, 33, 170);
/* oklch */ color: oklch(39.5% 0.199 283.6);
Tailwind
colors: {
  custom: {
    50: '#8462c5',
    500: '#4221aa',
    950: '#000000',
  },
}
SCSS
$custom: #4221aa;
$custom-light: #8462c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4221aa",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 254.453,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39479,
    "c": 0.19875,
    "h": 283.6
  },
  "luminance": 0.05148
}

Semantic roles & 50–950 ramp

primary
#4221AA
secondary
#AEC661
accent
#EA3DC1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4221AA

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

Preview Lab → · Contrast checker → · Palette generator →

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