#401979#401979

#401979 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.150 H 295.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#401979
RGBrgb(64, 25, 121)
HSLhsl(264, 66%, 29%)
HSVhsv(264, 79%, 47%)
CMYKcmyk(47.1%, 79.3%, 0%, 52.5%)
CIE-LABlab(20.70, 39.94, -47.28)
CIE-LCHlch(20.70, 61.89, 310.19°)
OKLaboklab(33.44% 0.0646 -0.1355)
OKLCHoklch(33.44% 0.15 295.5)
XYZxyz(5.9122, 3.1656, 18.3850)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401979 #527919
analogous
#192279 #401979 #701979
triadic
#401979 #794019 #197940
tetradic
#401979 #791922 #527919 #197970
square
#401979 #791922 #527919 #197970
split-complementary
#401979 #797019 #227919
monochromatic
#0D0519 #250F46 #401979 #5B23AC #7737D6

Accessibility & contrast

On white

12.86
#401979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401979
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401979#FFFFFF#000000##FFFFFF
##4019791.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#303348
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401979;
/* rgb */ color: rgb(64, 25, 121);
/* oklch */ color: oklch(33.4% 0.150 295.5);
Tailwind
colors: {
  custom: {
    50: '#7b5aa1',
    500: '#401979',
    950: '#000000',
  },
}
SCSS
$custom: #401979;
$custom-light: #7b5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#401979",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 264.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.15007,
    "h": 295.5
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#401979
secondary
#81AE40
accent
#E93FA4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401979

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

Preview Lab → · Contrast checker → · Palette generator →

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