#4222A2#4222A2

#4222A2 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.189 H 284.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4222A2
RGBrgb(66, 34, 162)
HSLhsl(255, 65%, 38%)
HSVhsv(255, 79%, 64%)
CMYKcmyk(59.3%, 79%, 0%, 36.5%)
CIE-LABlab(26.48, 47.62, -63.28)
CIE-LCHlch(26.48, 79.20, 306.96°)
OKLaboklab(38.76% 0.0485 -0.1823)
OKLCHoklch(38.76% 0.189 284.9)
XYZxyz(9.3384, 4.9104, 34.6311)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222A2 #82A222
analogous
#2242A2 #4222A2 #8222A2
triadic
#4222A2 #A24222 #22A242
tetradic
#4222A2 #A22242 #82A222 #22A282
square
#4222A2 #A22242 #82A222 #22A282
split-complementary
#4222A2 #A28222 #42A222
monochromatic
#190D3D #2D176F #4222A2 #572ED3 #8061DE

Accessibility & contrast

On white

10.59
#4222A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4222A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222A2
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222A2#FFFFFF#000000##FFFFFF
##4222A21.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#084862
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4222a2;
/* rgb */ color: rgb(66, 34, 162);
/* oklch */ color: oklch(38.8% 0.189 284.9);
Tailwind
colors: {
  custom: {
    50: '#8262bf',
    500: '#4222a2',
    950: '#000000',
  },
}
SCSS
$custom: #4222a2;
$custom-light: #8262bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4222a2",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 255,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38763,
    "c": 0.18867,
    "h": 284.9
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#4222A2
secondary
#A9C35D
accent
#E840BE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4222A2

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

Preview Lab → · Contrast checker → · Palette generator →

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