#401996#401996

#401996 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.183 H 287.5°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#401996
RGBrgb(64, 25, 150)
HSLhsl(259, 71%, 34%)
HSVhsv(259, 83%, 59%)
CMYKcmyk(57.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(23.63, 48.00, -60.65)
CIE-LCHlch(23.63, 77.34, 308.36°)
OKLaboklab(36.36% 0.0549 -0.1746)
OKLCHoklch(36.36% 0.183 287.5)
XYZxyz(7.9654, 3.9868, 29.1981)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401996 #6F9619
analogous
#193196 #401996 #7F1996
triadic
#401996 #964019 #199640
tetradic
#401996 #961931 #6F9619 #19967F
square
#401996 #961931 #6F9619 #19967F
split-complementary
#401996 #967F19 #319619
monochromatic
#13082D #2A1062 #401996 #5622CA #7849E1

Accessibility & contrast

On white

11.68
#401996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#401996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401996
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401996#FFFFFF#000000##FFFFFF
##4019961.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#183F59
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401996;
/* rgb */ color: rgb(64, 25, 150);
/* oklch */ color: oklch(36.4% 0.183 287.5);
Tailwind
colors: {
  custom: {
    50: '#805cb6',
    500: '#401996',
    950: '#000000',
  },
}
SCSS
$custom: #401996;
$custom-light: #805cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#401996",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 258.72,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36363,
    "c": 0.18304,
    "h": 287.5
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#401996
secondary
#9CC249
accent
#EE3AB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401996

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

Preview Lab → · Contrast checker → · Palette generator →

#401996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva