#401877#401877

#401877 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.149 H 296.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#401877
RGBrgb(64, 24, 119)
HSLhsl(265, 66%, 28%)
HSVhsv(265, 80%, 47%)
CMYKcmyk(46.2%, 79.8%, 0%, 53.3%)
CIE-LABlab(20.34, 39.86, -46.57)
CIE-LCHlch(20.34, 61.30, 310.56°)
OKLaboklab(33.14% 0.066 -0.1334)
OKLCHoklch(33.14% 0.149 296.3)
XYZxyz(5.7699, 3.0750, 17.7387)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401877 #4F7718
analogous
#181F77 #401877 #6F1877
triadic
#401877 #774018 #187740
tetradic
#401877 #77181F #4F7718 #18776F
square
#401877 #77181F #4F7718 #18776F
split-complementary
#401877 #776F18 #1F7718
monochromatic
#0E0519 #250E44 #401877 #5B22AA #7833D6

Accessibility & contrast

On white

13.00
#401877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401877
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401877#FFFFFF#000000##FFFFFF
##4018771.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#313247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401877;
/* rgb */ color: rgb(64, 24, 119);
/* oklch */ color: oklch(33.1% 0.149 296.3);
Tailwind
colors: {
  custom: {
    50: '#7b5a9f',
    500: '#401877',
    950: '#000000',
  },
}
SCSS
$custom: #401877;
$custom-light: #7b5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#401877",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 265.263,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.14885,
    "h": 296.3
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#401877
secondary
#7EAC3F
accent
#E93EA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401877

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

Preview Lab → · Contrast checker → · Palette generator →

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