#4024A2#4024A2

#4024A2 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.187 H 283.6°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4024A2
RGBrgb(64, 36, 162)
HSLhsl(253, 64%, 39%)
HSVhsv(253, 78%, 64%)
CMYKcmyk(60.5%, 77.8%, 0%, 36.5%)
CIE-LABlab(26.62, 46.40, -63.06)
CIE-LCHlch(26.62, 78.29, 306.35°)
OKLaboklab(38.82% 0.0441 -0.1818)
OKLCHoklch(38.82% 0.187 283.6)
XYZxyz(9.2648, 4.9598, 34.6445)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024A2 #86A224
analogous
#2447A2 #4024A2 #7F24A2
triadic
#4024A2 #A24024 #24A240
tetradic
#4024A2 #A22447 #86A224 #24A27F
square
#4024A2 #A22447 #86A224 #24A27F
split-complementary
#4024A2 #A27F24 #47A224
monochromatic
#180E3E #2C1970 #4024A2 #5532D1 #7F64DD

Accessibility & contrast

On white

10.54
#4024A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4024A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4024A2
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4024A2#FFFFFF#000000##FFFFFF
##4024A21.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4024a2;
/* rgb */ color: rgb(64, 36, 162);
/* oklch */ color: oklch(38.8% 0.187 283.6);
Tailwind
colors: {
  custom: {
    50: '#8163bf',
    500: '#4024a2',
    950: '#000000',
  },
}
SCSS
$custom: #4024a2;
$custom-light: #8163bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4024a2",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 253.333,
    "s": 63.636,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38815,
    "c": 0.18703,
    "h": 283.6
  },
  "luminance": 0.0496
}

Semantic roles & 50–950 ramp

primary
#4024A2
secondary
#ACC260
accent
#E741C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4024A2

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

Preview Lab → · Contrast checker → · Palette generator →

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