#4022A5#4022A5

#4022A5 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.192 H 283.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4022A5
RGBrgb(64, 34, 165)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 79%, 65%)
CMYKcmyk(61.2%, 79.4%, 0%, 35.3%)
CIE-LABlab(26.59, 48.26, -64.92)
CIE-LCHlch(26.59, 80.89, 306.62°)
OKLaboklab(38.89% 0.0445 -0.1872)
OKLCHoklch(38.89% 0.192 283.4)
XYZxyz(9.4758, 4.9500, 36.0461)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022A5 #87A522
analogous
#2246A5 #4022A5 #8222A5
triadic
#4022A5 #A54022 #22A540
tetradic
#4022A5 #A52246 #87A522 #22A582
square
#4022A5 #A52246 #87A522 #22A582
split-complementary
#4022A5 #A58222 #46A522
monochromatic
#190D40 #2C1872 #4022A5 #5630D4 #7F63DF

Accessibility & contrast

On white

10.55
#4022A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4022A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022A5
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022A5#FFFFFF#000000##FFFFFF
##4022A51.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4022a5;
/* rgb */ color: rgb(64, 34, 165);
/* oklch */ color: oklch(38.9% 0.192 283.4);
Tailwind
colors: {
  custom: {
    50: '#8262c1',
    500: '#4022a5',
    950: '#000000',
  },
}
SCSS
$custom: #4022a5;
$custom-light: #8262c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4022a5",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 253.74,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38888,
    "c": 0.19239,
    "h": 283.4
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#4022A5
secondary
#ADC45F
accent
#E93FC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4022A5

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

Preview Lab → · Contrast checker → · Palette generator →

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