#4024A5#4024A5

#4024A5 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.191 H 283.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4024A5
RGBrgb(64, 36, 165)
HSLhsl(253, 64%, 39%)
HSVhsv(253, 78%, 65%)
CMYKcmyk(61.2%, 78.2%, 0%, 35.3%)
CIE-LABlab(26.93, 47.29, -64.37)
CIE-LCHlch(26.93, 79.88, 306.31°)
OKLaboklab(39.12% 0.0432 -0.1856)
OKLCHoklch(39.12% 0.191 283.1)
XYZxyz(9.5347, 5.0677, 36.0657)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024A5 #89A524
analogous
#2449A5 #4024A5 #8124A5
triadic
#4024A5 #A54024 #24A540
tetradic
#4024A5 #A52449 #89A524 #24A581
square
#4024A5 #A52449 #89A524 #24A581
split-complementary
#4024A5 #A58124 #49A524
monochromatic
#190E41 #2D1973 #4024A5 #5634D3 #8066DE

Accessibility & contrast

On white

10.43
#4024A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4024A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4024A5
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4024A5#FFFFFF#000000##FFFFFF
##4024A51.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4024a5;
/* rgb */ color: rgb(64, 36, 165);
/* oklch */ color: oklch(39.1% 0.191 283.1);
Tailwind
colors: {
  custom: {
    50: '#8263c1',
    500: '#4024a5',
    950: '#000000',
  },
}
SCSS
$custom: #4024a5;
$custom-light: #8263c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4024a5",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 253.023,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39121,
    "c": 0.19056,
    "h": 283.1
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#4024A5
secondary
#AEC362
accent
#E741C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4024A5

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

Preview Lab → · Contrast checker → · Palette generator →

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