#4221A8#4221A8

#4221A8 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.196 H 283.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4221A8
RGBrgb(66, 33, 168)
HSLhsl(255, 67%, 39%)
HSVhsv(255, 80%, 66%)
CMYKcmyk(60.7%, 80.4%, 0%, 34.1%)
CIE-LABlab(26.94, 49.82, -66.15)
CIE-LCHlch(26.94, 82.81, 306.98°)
OKLaboklab(39.27% 0.0472 -0.1907)
OKLCHoklch(39.27% 0.196 283.9)
XYZxyz(9.8563, 5.0725, 37.4979)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221A8 #87A821
analogous
#2143A8 #4221A8 #8621A8
triadic
#4221A8 #A84221 #21A842
tetradic
#4221A8 #A82143 #87A821 #21A886
square
#4221A8 #A82143 #87A821 #21A886
split-complementary
#4221A8 #A88621 #43A821
monochromatic
#1A0D42 #2E1775 #4221A8 #5930D6 #8263E0

Accessibility & contrast

On white

10.42
#4221A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4221A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4221A8#FFFFFF#000000##FFFFFF
##4221A81.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4221a8;
/* rgb */ color: rgb(66, 33, 168);
/* oklch */ color: oklch(39.3% 0.196 283.9);
Tailwind
colors: {
  custom: {
    50: '#8462c3',
    500: '#4221a8',
    950: '#000000',
  },
}
SCSS
$custom: #4221a8;
$custom-light: #8462c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4221a8",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 254.667,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3927,
    "c": 0.19647,
    "h": 283.9
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#4221A8
secondary
#ACC55F
accent
#EA3EC0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4221A8

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

Preview Lab → · Contrast checker → · Palette generator →

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