#4020A9#4020A9

#4020A9 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.199 H 282.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4020A9
RGBrgb(64, 32, 169)
HSLhsl(254, 68%, 39%)
HSVhsv(254, 81%, 66%)
CMYKcmyk(62.1%, 81.1%, 0%, 33.7%)
CIE-LABlab(26.70, 50.34, -67.16)
CIE-LCHlch(26.70, 83.93, 306.85°)
OKLaboklab(39.09% 0.0444 -0.1937)
OKLCHoklch(39.09% 0.199 282.9)
XYZxyz(9.7901, 4.9869, 37.9751)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4020A9 #89A920
analogous
#2044A9 #4020A9 #8520A9
triadic
#4020A9 #A94020 #20A940
tetradic
#4020A9 #A92044 #89A920 #20A985
square
#4020A9 #A92044 #89A920 #20A985
split-complementary
#4020A9 #A98520 #44A920
monochromatic
#190D42 #2D1676 #4020A9 #562FD8 #8062E1

Accessibility & contrast

On white

10.51
#4020A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4020A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4020A9
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4020A9#FFFFFF#000000##FFFFFF
##4020A91.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)
#0043AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4020a9;
/* rgb */ color: rgb(64, 32, 169);
/* oklch */ color: oklch(39.1% 0.199 282.9);
Tailwind
colors: {
  custom: {
    50: '#8361c4',
    500: '#4020a9',
    950: '#000000',
  },
}
SCSS
$custom: #4020a9;
$custom-light: #8361c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4020a9",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 254.015,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39087,
    "c": 0.19872,
    "h": 282.9
  },
  "luminance": 0.04988
}

Semantic roles & 50–950 ramp

primary
#4020A9
secondary
#AEC65F
accent
#EB3DC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #4020A9

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

Preview Lab → · Contrast checker → · Palette generator →

#4020A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva