#4022A7#4022A7

#4022A7 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.195 H 283.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4022A7
RGBrgb(64, 34, 167)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 80%, 65%)
CMYKcmyk(61.7%, 79.6%, 0%, 34.5%)
CIE-LABlab(26.80, 48.84, -65.79)
CIE-LCHlch(26.80, 81.93, 306.59°)
OKLaboklab(39.1% 0.0439 -0.1897)
OKLCHoklch(39.1% 0.195 283)
XYZxyz(9.6593, 5.0234, 37.0123)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A7 #89A722
analogous
#2247A7 #4022A7 #8322A7
triadic
#4022A7 #A74022 #22A740
tetradic
#4022A7 #A72247 #89A722 #22A783
square
#4022A7 #A72247 #89A722 #22A783
split-complementary
#4022A7 #A78322 #47A722
monochromatic
#190D41 #2D1874 #4022A7 #5631D5 #8064DF

Accessibility & contrast

On white

10.47
#4022A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4022A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022A7
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A7#FFFFFF#000000##FFFFFF
##4022A71.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4022a7;
/* rgb */ color: rgb(64, 34, 167);
/* oklch */ color: oklch(39.1% 0.195 283.0);
Tailwind
colors: {
  custom: {
    50: '#8262c2',
    500: '#4022a7',
    950: '#000000',
  },
}
SCSS
$custom: #4022a7;
$custom-light: #8262c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a7",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 253.534,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39096,
    "c": 0.19471,
    "h": 283
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#4022A7
secondary
#AEC560
accent
#E93FC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4022A7

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

Preview Lab → · Contrast checker → · Palette generator →

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