#4022A3#4022A3

#4022A3 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.190 H 283.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4022A3
RGBrgb(64, 34, 163)
HSLhsl(254, 65%, 39%)
HSVhsv(254, 79%, 64%)
CMYKcmyk(60.7%, 79.1%, 0%, 36.1%)
CIE-LABlab(26.38, 47.67, -64.05)
CIE-LCHlch(26.38, 79.85, 306.66°)
OKLaboklab(38.68% 0.0451 -0.1846)
OKLCHoklch(38.68% 0.19 283.7)
XYZxyz(9.2952, 4.8778, 35.0949)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A3 #85A322
analogous
#2245A3 #4022A3 #8022A3
triadic
#4022A3 #A34022 #22A340
tetradic
#4022A3 #A32245 #85A322 #22A380
square
#4022A3 #A32245 #85A322 #22A380
split-complementary
#4022A3 #A38022 #45A322
monochromatic
#180D3E #2C1770 #4022A3 #552FD4 #7E61DE

Accessibility & contrast

On white

10.63
#4022A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4022A3
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A3#FFFFFF#000000##FFFFFF
##4022A31.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4022a3;
/* rgb */ color: rgb(64, 34, 163);
/* oklch */ color: oklch(38.7% 0.190 283.7);
Tailwind
colors: {
  custom: {
    50: '#8262bf',
    500: '#4022a3',
    950: '#000000',
  },
}
SCSS
$custom: #4022a3;
$custom-light: #8262bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a3",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 253.953,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3868,
    "c": 0.19007,
    "h": 283.7
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#4022A3
secondary
#ACC35E
accent
#E83FC1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4022A3

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

Preview Lab → · Contrast checker → · Palette generator →

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