#4022AD#4022AD

#4022AD is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.7% C 0.202 H 282.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4022AD
RGBrgb(64, 34, 173)
HSLhsl(253, 67%, 41%)
HSVhsv(253, 80%, 68%)
CMYKcmyk(63%, 80.3%, 0%, 32.2%)
CIE-LABlab(27.44, 50.59, -68.35)
CIE-LCHlch(27.44, 85.03, 306.51°)
OKLaboklab(39.73% 0.042 -0.1972)
OKLCHoklch(39.73% 0.202 282)
XYZxyz(10.2268, 5.2504, 40.0016)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022AD #8FAD22
analogous
#2249AD #4022AD #8622AD
triadic
#4022AD #AD4022 #22AD40
tetradic
#4022AD #AD2249 #8FAD22 #22AD86
square
#4022AD #AD2249 #8FAD22 #22AD86
split-complementary
#4022AD #AD8622 #49AD22
monochromatic
#1A0E47 #2D187A #4022AD #5835D7 #8268E1

Accessibility & contrast

On white

10.24
#4022AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4022AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022AD
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022AD#FFFFFF#000000##FFFFFF
##4022AD1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B1
Deuteranopia (green-blind)
#003CAB
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4022ad;
/* rgb */ color: rgb(64, 34, 173);
/* oklch */ color: oklch(39.7% 0.202 282.0);
Tailwind
colors: {
  custom: {
    50: '#8362c7',
    500: '#4022ad',
    950: '#000000',
  },
}
SCSS
$custom: #4022ad;
$custom-light: #8362c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4022ad",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 252.95,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39726,
    "c": 0.20161,
    "h": 282
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#4022AD
secondary
#B2C764
accent
#EA3EC5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4022AD

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

Preview Lab → · Contrast checker → · Palette generator →

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