#4022A9#4022A9

#4022A9 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.197 H 282.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4022A9
RGBrgb(64, 34, 169)
HSLhsl(253, 67%, 40%)
HSVhsv(253, 80%, 66%)
CMYKcmyk(62.1%, 79.9%, 0%, 33.7%)
CIE-LABlab(27.01, 49.43, -66.65)
CIE-LCHlch(27.01, 82.97, 306.56°)
OKLaboklab(39.31% 0.0432 -0.1922)
OKLCHoklch(39.31% 0.197 282.7)
XYZxyz(9.8456, 5.0979, 37.9936)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A9 #8BA922
analogous
#2248A9 #4022A9 #8322A9
triadic
#4022A9 #A94022 #22A940
tetradic
#4022A9 #A92248 #8BA922 #22A983
square
#4022A9 #A92248 #8BA922 #22A983
split-complementary
#4022A9 #A98322 #48A922
monochromatic
#190D43 #2D1876 #4022A9 #5732D6 #8165E0

Accessibility & contrast

On white

10.40
#4022A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4022A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022A9
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A9#FFFFFF#000000##FFFFFF
##4022A91.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4022a9;
/* rgb */ color: rgb(64, 34, 169);
/* oklch */ color: oklch(39.3% 0.197 282.7);
Tailwind
colors: {
  custom: {
    50: '#8362c4',
    500: '#4022a9',
    950: '#000000',
  },
}
SCSS
$custom: #4022a9;
$custom-light: #8362c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a9",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 253.333,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39305,
    "c": 0.19702,
    "h": 282.7
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#4022A9
secondary
#AFC561
accent
#E93EC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4022A9

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

Preview Lab → · Contrast checker → · Palette generator →

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