#4020AE#4020AE

#4020AE is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.6% C 0.204 H 282.1°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4020AE
RGBrgb(64, 32, 174)
HSLhsl(254, 69%, 40%)
HSVhsv(254, 82%, 68%)
CMYKcmyk(63.2%, 81.6%, 0%, 31.8%)
CIE-LABlab(27.24, 51.77, -69.28)
CIE-LCHlch(27.24, 86.49, 306.77°)
OKLaboklab(39.62% 0.0428 -0.1999)
OKLCHoklch(39.62% 0.204 282.1)
XYZxyz(10.2685, 5.1783, 40.4946)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4020AE #8EAE20
analogous
#2047AE #4020AE #8720AE
triadic
#4020AE #AE4020 #20AE40
tetradic
#4020AE #AE2047 #8EAE20 #20AE87
square
#4020AE #AE2047 #8EAE20 #20AE87
split-complementary
#4020AE #AE8720 #47AE20
monochromatic
#1A0D47 #2D167A #4020AE #5832D9 #8266E3

Accessibility & contrast

On white

10.32
#4020AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4020AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4020AE
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4020AE#FFFFFF#000000##FFFFFF
##4020AE1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B2
Deuteranopia (green-blind)
#003BAC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4020ae;
/* rgb */ color: rgb(64, 32, 174);
/* oklch */ color: oklch(39.6% 0.204 282.1);
Tailwind
colors: {
  custom: {
    50: '#8461c8',
    500: '#4020ae',
    950: '#000000',
  },
}
SCSS
$custom: #4020ae;
$custom-light: #8461c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4020ae",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 174
  },
  "hsl": {
    "h": 253.521,
    "s": 68.932,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39619,
    "c": 0.20439,
    "h": 282.1
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#4020AE
secondary
#B1C862
accent
#EC3CC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4020AE

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

Preview Lab → · Contrast checker → · Palette generator →

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