#4021AE#4021AE

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

Color values

HEX#4021AE
RGBrgb(64, 33, 174)
HSLhsl(253, 68%, 41%)
HSVhsv(253, 81%, 68%)
CMYKcmyk(63.2%, 81%, 0%, 31.8%)
CIE-LABlab(27.39, 51.33, -69.03)
CIE-LCHlch(27.39, 86.02, 306.63°)
OKLaboklab(39.72% 0.0423 -0.1991)
OKLCHoklch(39.72% 0.204 282)
XYZxyz(10.2958, 5.2329, 40.5037)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4021AE #8FAE21
analogous
#2149AE #4021AE #8621AE
triadic
#4021AE #AE4021 #21AE40
tetradic
#4021AE #AE2149 #8FAE21 #21AE86
square
#4021AE #AE2149 #8FAE21 #21AE86
split-complementary
#4021AE #AE8621 #49AE21
monochromatic
#1A0D47 #2D177B #4021AE #5834D8 #8267E2

Accessibility & contrast

On white

10.26
#4021AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4021AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4021AE
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4021AE#FFFFFF#000000##FFFFFF
##4021AE1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4021ae;
/* rgb */ color: rgb(64, 33, 174);
/* oklch */ color: oklch(39.7% 0.204 282.0);
Tailwind
colors: {
  custom: {
    50: '#8462c7',
    500: '#4021ae',
    950: '#000000',
  },
}
SCSS
$custom: #4021ae;
$custom-light: #8462c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4021ae",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 253.191,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39724,
    "c": 0.20358,
    "h": 282
  },
  "luminance": 0.05234
}

Semantic roles & 50–950 ramp

primary
#4021AE
secondary
#B2C863
accent
#EB3DC5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4021AE

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

Preview Lab → · Contrast checker → · Palette generator →

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