#401976#401976

#401976 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.147 H 296.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#401976
RGBrgb(64, 25, 118)
HSLhsl(265, 65%, 28%)
HSVhsv(265, 79%, 46%)
CMYKcmyk(45.8%, 78.8%, 0%, 53.7%)
CIE-LABlab(20.41, 39.11, -45.82)
CIE-LCHlch(20.41, 60.24, 310.49°)
OKLaboklab(33.16% 0.0654 -0.1312)
OKLCHoklch(33.16% 0.147 296.5)
XYZxyz(5.7311, 3.0931, 17.4311)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401976 #4F7619
analogous
#192176 #401976 #6E1976
triadic
#401976 #764019 #197640
tetradic
#401976 #761921 #4F7619 #19766E
square
#401976 #761921 #4F7619 #19766E
split-complementary
#401976 #766E19 #217619
monochromatic
#0E0519 #250E43 #401976 #5B24A8 #7835D4

Accessibility & contrast

On white

12.97
#401976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401976
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401976#FFFFFF#000000##FFFFFF
##4019761.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#313246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401976;
/* rgb */ color: rgb(64, 25, 118);
/* oklch */ color: oklch(33.2% 0.147 296.5);
Tailwind
colors: {
  custom: {
    50: '#7b5a9e',
    500: '#401976',
    950: '#000000',
  },
}
SCSS
$custom: #401976;
$custom-light: #7b5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401976",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 265.161,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33156,
    "c": 0.1466,
    "h": 296.5
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#401976
secondary
#7EAB40
accent
#E840A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401976

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

Preview Lab → · Contrast checker → · Palette generator →

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