#4022A2#4022A2

#4022A2 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.189 H 283.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4022A2
RGBrgb(64, 34, 162)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 79%, 64%)
CMYKcmyk(60.5%, 79%, 0%, 36.5%)
CIE-LABlab(26.28, 47.38, -63.62)
CIE-LCHlch(26.28, 79.32, 306.68°)
OKLaboklab(38.58% 0.0454 -0.1834)
OKLCHoklch(38.58% 0.189 283.9)
XYZxyz(9.2060, 4.8421, 34.6249)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A2 #84A222
analogous
#2244A2 #4022A2 #8022A2
triadic
#4022A2 #A24022 #22A240
tetradic
#4022A2 #A22244 #84A222 #22A280
square
#4022A2 #A22244 #84A222 #22A280
split-complementary
#4022A2 #A28022 #44A222
monochromatic
#180D3D #2C176F #4022A2 #552ED3 #7E61DE

Accessibility & contrast

On white

10.67
#4022A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4022A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022A2
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A2#FFFFFF#000000##FFFFFF
##4022A21.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4022a2;
/* rgb */ color: rgb(64, 34, 162);
/* oklch */ color: oklch(38.6% 0.189 283.9);
Tailwind
colors: {
  custom: {
    50: '#8162bf',
    500: '#4022a2',
    950: '#000000',
  },
}
SCSS
$custom: #4022a2;
$custom-light: #8162bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a2",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 254.063,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38577,
    "c": 0.18891,
    "h": 283.9
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#4022A2
secondary
#ABC35D
accent
#E840C1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4022A2

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

Preview Lab → · Contrast checker → · Palette generator →

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