#4021AC#4021AC

#4021AC is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.5% C 0.201 H 282.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4021AC
RGBrgb(64, 33, 172)
HSLhsl(253, 68%, 40%)
HSVhsv(253, 81%, 67%)
CMYKcmyk(62.8%, 80.8%, 0%, 32.5%)
CIE-LABlab(27.17, 50.75, -68.19)
CIE-LCHlch(27.17, 85.00, 306.66°)
OKLaboklab(39.51% 0.0429 -0.1967)
OKLCHoklch(39.51% 0.201 282.3)
XYZxyz(10.1023, 5.1555, 39.4845)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4021AC #8DAC21
analogous
#2148AC #4021AC #8521AC
triadic
#4021AC #AC4021 #21AC40
tetradic
#4021AC #AC2148 #8DAC21 #21AC85
square
#4021AC #AC2148 #8DAC21 #21AC85
split-complementary
#4021AC #AC8521 #48AC21
monochromatic
#1A0D45 #2D1779 #4021AC #5732D8 #8166E2

Accessibility & contrast

On white

10.34
#4021AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4021AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4021AC
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4021AC#FFFFFF#000000##FFFFFF
##4021AC1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#003BAA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4021ac;
/* rgb */ color: rgb(64, 33, 172);
/* oklch */ color: oklch(39.5% 0.201 282.3);
Tailwind
colors: {
  custom: {
    50: '#8362c6',
    500: '#4021ac',
    950: '#000000',
  },
}
SCSS
$custom: #4021ac;
$custom-light: #8362c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4021ac",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 253.381,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39511,
    "c": 0.20131,
    "h": 282.3
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#4021AC
secondary
#B0C762
accent
#EB3DC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4021AC

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

Preview Lab → · Contrast checker → · Palette generator →

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