#401977#401977

#401977 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.148 H 296.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#401977
RGBrgb(64, 25, 119)
HSLhsl(265, 65%, 28%)
HSVhsv(265, 79%, 47%)
CMYKcmyk(46.2%, 79%, 0%, 53.3%)
CIE-LABlab(20.51, 39.39, -46.30)
CIE-LCHlch(20.51, 60.79, 310.39°)
OKLaboklab(33.25% 0.0651 -0.1326)
OKLCHoklch(33.25% 0.148 296.2)
XYZxyz(5.7909, 3.1170, 17.7457)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401977 #507719
analogous
#192177 #401977 #6F1977
triadic
#401977 #774019 #197740
tetradic
#401977 #771921 #507719 #19776F
square
#401977 #771921 #507719 #19776F
split-complementary
#401977 #776F19 #217719
monochromatic
#0E0519 #250E44 #401977 #5B24AA #7836D5

Accessibility & contrast

On white

12.94
#401977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401977
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401977#FFFFFF#000000##FFFFFF
##4019771.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.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: #401977;
/* rgb */ color: rgb(64, 25, 119);
/* oklch */ color: oklch(33.3% 0.148 296.2);
Tailwind
colors: {
  custom: {
    50: '#7b5a9f',
    500: '#401977',
    950: '#000000',
  },
}
SCSS
$custom: #401977;
$custom-light: #7b5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#401977",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 264.894,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33251,
    "c": 0.14776,
    "h": 296.2
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#401977
secondary
#7FAC40
accent
#E840A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401977

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

Preview Lab → · Contrast checker → · Palette generator →

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