#401777#401777

#401777 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.150 H 296.5°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#401777
RGBrgb(64, 23, 119)
HSLhsl(266, 68%, 28%)
HSVhsv(266, 81%, 47%)
CMYKcmyk(46.2%, 80.7%, 0%, 53.3%)
CIE-LABlab(20.18, 40.32, -46.84)
CIE-LCHlch(20.18, 61.80, 310.72°)
OKLaboklab(33.02% 0.0669 -0.1342)
OKLCHoklch(33.02% 0.15 296.5)
XYZxyz(5.7496, 3.0346, 17.7320)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401777 #4E7717
analogous
#171E77 #401777 #701777
triadic
#401777 #774017 #177740
tetradic
#401777 #77171E #4E7717 #177770
square
#401777 #77171E #4E7717 #177770
split-complementary
#401777 #777017 #1E7717
monochromatic
#0E051A #240D44 #401777 #5C21AA #7831D7

Accessibility & contrast

On white

13.07
#401777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401777
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401777#FFFFFF#000000##FFFFFF
##4017771.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#313147
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401777;
/* rgb */ color: rgb(64, 23, 119);
/* oklch */ color: oklch(33.0% 0.150 296.5);
Tailwind
colors: {
  custom: {
    50: '#7b599f',
    500: '#401777',
    950: '#000000',
  },
}
SCSS
$custom: #401777;
$custom-light: #7b599f;
$custom-dark: #000000;
JSON
{
  "hex": "#401777",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 265.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33023,
    "c": 0.14992,
    "h": 296.5
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#401777
secondary
#7DAC3E
accent
#EA3DA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401777

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

Preview Lab → · Contrast checker → · Palette generator →

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