#4221C2#4221C2

#4221C2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.0% C 0.226 H 279.9°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4221C2
RGBrgb(66, 33, 194)
HSLhsl(252, 71%, 45%)
HSVhsv(252, 83%, 76%)
CMYKcmyk(66%, 83%, 0%, 23.9%)
CIE-LABlab(29.76, 57.19, -76.98)
CIE-LCHlch(29.76, 95.90, 306.61°)
OKLaboklab(42.05% 0.0388 -0.2222)
OKLCHoklch(42.05% 0.226 279.9)
XYZxyz(12.5251, 6.1400, 51.5536)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221C2 #A1C221
analogous
#2151C2 #4221C2 #9321C2
triadic
#4221C2 #C24221 #21C242
tetradic
#4221C2 #C22151 #A1C221 #21C293
square
#4221C2 #C22151 #A1C221 #21C293
split-complementary
#4221C2 #C29321 #51C221
monochromatic
#1E0F59 #30188E #4221C2 #6241DF #8D76E8

Accessibility & contrast

On white

9.42
#4221C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4221C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4221C2#FFFFFF#000000##FFFFFF
##4221C21.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC6
Deuteranopia (green-blind)
#0040BF
Tritanopia (blue-blind)
#005474
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4221c2;
/* rgb */ color: rgb(66, 33, 194);
/* oklch */ color: oklch(42.0% 0.226 279.9);
Tailwind
colors: {
  custom: {
    50: '#8863d6',
    500: '#4221c2',
    950: '#000000',
  },
}
SCSS
$custom: #4221c2;
$custom-light: #8863d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4221c2",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 252.298,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42049,
    "c": 0.22559,
    "h": 279.9
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#4221C2
secondary
#BBCF70
accent
#EE3AC9
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4221C2

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

Preview Lab → · Contrast checker → · Palette generator →

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