#4220B2#4220B2

#4220B2 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.209 H 282.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4220B2
RGBrgb(66, 32, 178)
HSLhsl(254, 70%, 41%)
HSVhsv(254, 82%, 70%)
CMYKcmyk(62.9%, 82%, 0%, 30.2%)
CIE-LABlab(27.86, 53.11, -70.64)
CIE-LCHlch(27.86, 88.38, 306.93°)
OKLaboklab(40.22% 0.0445 -0.2038)
OKLCHoklch(40.22% 0.209 282.3)
XYZxyz(10.7967, 5.4048, 42.5851)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4220B2 #90B220
analogous
#2047B2 #4220B2 #8B20B2
triadic
#4220B2 #B24220 #20B242
tetradic
#4220B2 #B22047 #90B220 #20B28B
square
#4220B2 #B22047 #90B220 #20B28B
split-complementary
#4220B2 #B28B20 #47B220
monochromatic
#1C0D4A #2F177E #4220B2 #5B35DB #8568E4

Accessibility & contrast

On white

10.09
#4220B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4220B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4220B2
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4220B2#FFFFFF#000000##FFFFFF
##4220B21.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4220b2;
/* rgb */ color: rgb(66, 32, 178);
/* oklch */ color: oklch(40.2% 0.209 282.3);
Tailwind
colors: {
  custom: {
    50: '#8562ca',
    500: '#4220b2',
    950: '#000000',
  },
}
SCSS
$custom: #4220b2;
$custom-light: #8562ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4220b2",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 178
  },
  "hsl": {
    "h": 253.973,
    "s": 69.524,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40222,
    "c": 0.20858,
    "h": 282.3
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#4220B2
secondary
#B2CA64
accent
#EC3BC3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #4220B2

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

Preview Lab → · Contrast checker → · Palette generator →

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