#4222A4#4222A4

#4222A4 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.191 H 284.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4222A4
RGBrgb(66, 34, 164)
HSLhsl(255, 66%, 39%)
HSVhsv(255, 79%, 64%)
CMYKcmyk(59.8%, 79.3%, 0%, 35.7%)
CIE-LABlab(26.68, 48.20, -64.16)
CIE-LCHlch(26.68, 80.25, 306.92°)
OKLaboklab(38.97% 0.0478 -0.1849)
OKLCHoklch(38.97% 0.191 284.5)
XYZxyz(9.5176, 4.9820, 35.5749)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222A4 #84A422
analogous
#2243A4 #4222A4 #8322A4
triadic
#4222A4 #A44222 #22A442
tetradic
#4222A4 #A42243 #84A422 #22A483
square
#4222A4 #A42243 #84A422 #22A483
split-complementary
#4222A4 #A48322 #43A422
monochromatic
#190D3F #2E1771 #4222A4 #582FD4 #8162DE

Accessibility & contrast

On white

10.52
#4222A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4222A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222A4
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222A4#FFFFFF#000000##FFFFFF
##4222A41.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#034863
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4222a4;
/* rgb */ color: rgb(66, 34, 164);
/* oklch */ color: oklch(39.0% 0.191 284.5);
Tailwind
colors: {
  custom: {
    50: '#8362c0',
    500: '#4222a4',
    950: '#000000',
  },
}
SCSS
$custom: #4222a4;
$custom-light: #8362c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4222a4",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 254.769,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.19099,
    "h": 284.5
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#4222A4
secondary
#ABC45E
accent
#E93FBF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4222A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4222A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva