#4220B4#4220B4

#4220B4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.211 H 282.0°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4220B4
RGBrgb(66, 32, 180)
HSLhsl(254, 70%, 42%)
HSVhsv(254, 82%, 71%)
CMYKcmyk(63.3%, 82.2%, 0%, 29.4%)
CIE-LABlab(28.08, 53.67, -71.48)
CIE-LCHlch(28.08, 89.39, 306.90°)
OKLaboklab(40.44% 0.0439 -0.2062)
OKLCHoklch(40.44% 0.211 282)
XYZxyz(10.9989, 5.4857, 43.6504)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4220B4 #92B420
analogous
#2048B4 #4220B4 #8C20B4
triadic
#4220B4 #B44220 #20B442
tetradic
#4220B4 #B42048 #92B420 #20B48C
square
#4220B4 #B42048 #92B420 #20B48C
split-complementary
#4220B4 #B48C20 #48B420
monochromatic
#1C0E4C #2F1780 #4220B4 #5C36DB #866AE4

Accessibility & contrast

On white

10.01
#4220B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4220B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4220B4
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4220B4#FFFFFF#000000##FFFFFF
##4220B41.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#004E6C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4220b4;
/* rgb */ color: rgb(66, 32, 180);
/* oklch */ color: oklch(40.4% 0.211 282.0);
Tailwind
colors: {
  custom: {
    50: '#8662cc',
    500: '#4220b4',
    950: '#000000',
  },
}
SCSS
$custom: #4220b4;
$custom-light: #8662cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4220b4",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 180
  },
  "hsl": {
    "h": 253.784,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40436,
    "c": 0.21082,
    "h": 282
  },
  "luminance": 0.05487
}

Semantic roles & 50–950 ramp

primary
#4220B4
secondary
#B3CA66
accent
#ED3BC4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0514
muted
#7D7A82

Preview Lab

Preview with #4220B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4220B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva