#4022A4#4022A4

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

Color values

HEX#4022A4
RGBrgb(64, 34, 164)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 79%, 64%)
CMYKcmyk(61%, 79.3%, 0%, 35.7%)
CIE-LABlab(26.49, 47.97, -64.49)
CIE-LCHlch(26.49, 80.37, 306.64°)
OKLaboklab(38.78% 0.0448 -0.1859)
OKLCHoklch(38.78% 0.191 283.5)
XYZxyz(9.3852, 4.9137, 35.5687)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A4 #86A422
analogous
#2245A4 #4022A4 #8122A4
triadic
#4022A4 #A44022 #22A440
tetradic
#4022A4 #A42245 #86A422 #22A481
square
#4022A4 #A42245 #86A422 #22A481
split-complementary
#4022A4 #A48122 #45A422
monochromatic
#180D3F #2C1771 #4022A4 #552FD4 #7F62DE

Accessibility & contrast

On white

10.59
#4022A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4022A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022A4
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A4#FFFFFF#000000##FFFFFF
##4022A41.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)
#0042A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4022a4;
/* rgb */ color: rgb(64, 34, 164);
/* oklch */ color: oklch(38.8% 0.191 283.5);
Tailwind
colors: {
  custom: {
    50: '#8262c0',
    500: '#4022a4',
    950: '#000000',
  },
}
SCSS
$custom: #4022a4;
$custom-light: #8262c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a4",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 253.846,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38784,
    "c": 0.19123,
    "h": 283.5
  },
  "luminance": 0.04914
}

Semantic roles & 50–950 ramp

primary
#4022A4
secondary
#ACC45E
accent
#E93FC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4022A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4022A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva