#4222B5#4222B5

#4222B5 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.7% C 0.210 H 281.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4222B5
RGBrgb(66, 34, 181)
HSLhsl(253, 68%, 42%)
HSVhsv(253, 81%, 71%)
CMYKcmyk(63.5%, 81.2%, 0%, 29%)
CIE-LABlab(28.48, 53.09, -71.41)
CIE-LCHlch(28.48, 88.98, 306.63°)
OKLaboklab(40.75% 0.0425 -0.206)
OKLCHoklch(40.75% 0.21 281.7)
XYZxyz(11.1567, 5.6377, 44.2074)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222B5 #95B522
analogous
#224CB5 #4222B5 #8B22B5
triadic
#4222B5 #B54222 #22B542
tetradic
#4222B5 #B5224C #95B522 #22B58B
square
#4222B5 #B5224C #95B522 #22B58B
split-complementary
#4222B5 #B58B22 #4CB522
monochromatic
#1C0F4E #2F1881 #4222B5 #5D3ADA #876EE4

Accessibility & contrast

On white

9.87
#4222B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4222B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222B5
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222B5#FFFFFF#000000##FFFFFF
##4222B51.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#004F6D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4222b5;
/* rgb */ color: rgb(66, 34, 181);
/* oklch */ color: oklch(40.7% 0.210 281.7);
Tailwind
colors: {
  custom: {
    50: '#8663cd',
    500: '#4222b5',
    950: '#000000',
  },
}
SCSS
$custom: #4222b5;
$custom-light: #8663cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4222b5",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 253.061,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40746,
    "c": 0.21037,
    "h": 281.7
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#4222B5
secondary
#B5CA69
accent
#EB3DC5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4222B5

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

Preview Lab → · Contrast checker → · Palette generator →

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