#4221A2#4221A2

#4221A2 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.190 H 285.0°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4221A2
RGBrgb(66, 33, 162)
HSLhsl(255, 66%, 38%)
HSVhsv(255, 80%, 64%)
CMYKcmyk(59.3%, 79.6%, 0%, 36.5%)
CIE-LABlab(26.31, 48.09, -63.55)
CIE-LCHlch(26.31, 79.70, 307.12°)
OKLaboklab(38.65% 0.0491 -0.1831)
OKLCHoklch(38.65% 0.19 285)
XYZxyz(9.3102, 4.8540, 34.6217)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221A2 #81A221
analogous
#2140A2 #4221A2 #8221A2
triadic
#4221A2 #A24221 #21A242
tetradic
#4221A2 #A22140 #81A221 #21A282
square
#4221A2 #A22140 #81A221 #21A282
split-complementary
#4221A2 #A28221 #40A221
monochromatic
#190C3C #2D176F #4221A2 #572CD4 #805FDE

Accessibility & contrast

On white

10.65
#4221A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4221A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4221A2#FFFFFF#000000##FFFFFF
##4221A21.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#094761
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4221a2;
/* rgb */ color: rgb(66, 33, 162);
/* oklch */ color: oklch(38.6% 0.190 285.0);
Tailwind
colors: {
  custom: {
    50: '#8261bf',
    500: '#4221a2',
    950: '#000000',
  },
}
SCSS
$custom: #4221a2;
$custom-light: #8261bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4221a2",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 255.349,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38649,
    "c": 0.18959,
    "h": 285
  },
  "luminance": 0.04855
}

Semantic roles & 50–950 ramp

primary
#4221A2
secondary
#A9C35C
accent
#E93FBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4221A2

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

Preview Lab → · Contrast checker → · Palette generator →

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