#4022A6#4022A6

#4022A6 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.194 H 283.2°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4022A6
RGBrgb(64, 34, 166)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 80%, 65%)
CMYKcmyk(61.4%, 79.5%, 0%, 34.9%)
CIE-LABlab(26.70, 48.55, -65.35)
CIE-LCHlch(26.70, 81.41, 306.61°)
OKLaboklab(38.99% 0.0442 -0.1884)
OKLCHoklch(38.99% 0.194 283.2)
XYZxyz(9.5672, 4.9866, 36.5274)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A6 #88A622
analogous
#2246A6 #4022A6 #8222A6
triadic
#4022A6 #A64022 #22A640
tetradic
#4022A6 #A62246 #88A622 #22A682
square
#4022A6 #A62246 #88A622 #22A682
split-complementary
#4022A6 #A68222 #46A622
monochromatic
#190D40 #2C1873 #4022A6 #5630D5 #7F63DF

Accessibility & contrast

On white

10.51
#4022A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4022A6
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A6#FFFFFF#000000##FFFFFF
##4022A61.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4022a6;
/* rgb */ color: rgb(64, 34, 166);
/* oklch */ color: oklch(39.0% 0.194 283.2);
Tailwind
colors: {
  custom: {
    50: '#8262c2',
    500: '#4022a6',
    950: '#000000',
  },
}
SCSS
$custom: #4022a6;
$custom-light: #8262c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a6",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 253.636,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38992,
    "c": 0.19356,
    "h": 283.2
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#4022A6
secondary
#ADC45F
accent
#E93FC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4022A6

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

Preview Lab → · Contrast checker → · Palette generator →

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