#4220A7#4220A7

#4220A7 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.196 H 284.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4220A7
RGBrgb(66, 32, 167)
HSLhsl(255, 68%, 39%)
HSVhsv(255, 81%, 65%)
CMYKcmyk(60.5%, 80.8%, 0%, 34.5%)
CIE-LABlab(26.68, 49.98, -65.98)
CIE-LCHlch(26.68, 82.78, 307.15°)
OKLaboklab(39.06% 0.0481 -0.1902)
OKLCHoklch(39.06% 0.196 284.2)
XYZxyz(9.7362, 4.9807, 37.0000)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4220A7 #85A720
analogous
#2042A7 #4220A7 #8620A7
triadic
#4220A7 #A74220 #20A742
tetradic
#4220A7 #A72042 #85A720 #20A786
square
#4220A7 #A72042 #85A720 #20A786
split-complementary
#4220A7 #A78620 #42A720
monochromatic
#190C40 #2E1674 #4220A7 #582DD7 #8161E1

Accessibility & contrast

On white

10.52
#4220A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4220A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4220A7
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4220A7#FFFFFF#000000##FFFFFF
##4220A71.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)
#0043AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4220a7;
/* rgb */ color: rgb(66, 32, 167);
/* oklch */ color: oklch(39.1% 0.196 284.2);
Tailwind
colors: {
  custom: {
    50: '#8361c2',
    500: '#4220a7',
    950: '#000000',
  },
}
SCSS
$custom: #4220a7;
$custom-light: #8361c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4220a7",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 255.111,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.19618,
    "h": 284.2
  },
  "luminance": 0.04981
}

Semantic roles & 50–950 ramp

primary
#4220A7
secondary
#ABC55D
accent
#EB3DBF
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #4220A7

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

Preview Lab → · Contrast checker → · Palette generator →

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