#4221B4#4221B4

#4221B4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.5% C 0.210 H 281.9°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4221B4
RGBrgb(66, 33, 180)
HSLhsl(253, 69%, 42%)
HSVhsv(253, 82%, 71%)
CMYKcmyk(63.3%, 81.7%, 0%, 29.4%)
CIE-LABlab(28.22, 53.24, -71.24)
CIE-LCHlch(28.22, 88.94, 306.78°)
OKLaboklab(40.54% 0.0434 -0.2055)
OKLCHoklch(40.54% 0.21 281.9)
XYZxyz(11.0263, 5.5404, 43.6595)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221B4 #93B421
analogous
#214AB4 #4221B4 #8B21B4
triadic
#4221B4 #B44221 #21B442
tetradic
#4221B4 #B4214A #93B421 #21B48B
square
#4221B4 #B4214A #93B421 #21B48B
split-complementary
#4221B4 #B48B21 #4AB421
monochromatic
#1C0E4D #2F1880 #4221B4 #5C38DA #876BE4

Accessibility & contrast

On white

9.96
#4221B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4221B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4221B4#FFFFFF#000000##FFFFFF
##4221B41.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4221b4;
/* rgb */ color: rgb(66, 33, 180);
/* oklch */ color: oklch(40.5% 0.210 281.9);
Tailwind
colors: {
  custom: {
    50: '#8662cc',
    500: '#4221b4',
    950: '#000000',
  },
}
SCSS
$custom: #4221b4;
$custom-light: #8662cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4221b4",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 253.469,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40537,
    "c": 0.21004,
    "h": 281.9
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#4221B4
secondary
#B4CA67
accent
#EC3CC4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0514
muted
#7D7A82

Preview Lab

Preview with #4221B4

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

Preview Lab → · Contrast checker → · Palette generator →

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