#4022A0#4022A0

#4022A0 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.187 H 284.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4022A0
RGBrgb(64, 34, 160)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 79%, 63%)
CMYKcmyk(60%, 78.8%, 0%, 37.3%)
CIE-LABlab(26.07, 46.79, -62.74)
CIE-LCHlch(26.07, 78.27, 306.72°)
OKLaboklab(38.37% 0.046 -0.1808)
OKLCHoklch(38.37% 0.187 284.3)
XYZxyz(9.0296, 4.7715, 33.6961)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A0 #82A022
analogous
#2243A0 #4022A0 #7F22A0
triadic
#4022A0 #A04022 #22A040
tetradic
#4022A0 #A02243 #82A022 #22A07F
square
#4022A0 #A02243 #82A022 #22A07F
split-complementary
#4022A0 #A07F22 #43A022
monochromatic
#180D3B #2C176E #4022A0 #542DD2 #7D5FDD

Accessibility & contrast

On white

10.74
#4022A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4022A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022A0
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A0#FFFFFF#000000##FFFFFF
##4022A01.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#014760
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4022a0;
/* rgb */ color: rgb(64, 34, 160);
/* oklch */ color: oklch(38.4% 0.187 284.3);
Tailwind
colors: {
  custom: {
    50: '#8161bd',
    500: '#4022a0',
    950: '#000000',
  },
}
SCSS
$custom: #4022a0;
$custom-light: #8161bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a0",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 254.286,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38372,
    "c": 0.18657,
    "h": 284.3
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#4022A0
secondary
#AAC25C
accent
#E840C0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4022A0

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

Preview Lab → · Contrast checker → · Palette generator →

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