#401775#401775

#401775 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.148 H 297.2°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#401775
RGBrgb(64, 23, 117)
HSLhsl(266, 67%, 27%)
HSVhsv(266, 80%, 46%)
CMYKcmyk(45.3%, 80.3%, 0%, 54.1%)
CIE-LABlab(19.99, 39.78, -45.86)
CIE-LCHlch(19.99, 60.71, 310.94°)
OKLaboklab(32.83% 0.0675 -0.1313)
OKLCHoklch(32.83% 0.148 297.2)
XYZxyz(5.6308, 2.9870, 17.1061)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401775 #4C7517
analogous
#171D75 #401775 #6F1775
triadic
#401775 #754017 #177540
tetradic
#401775 #75171D #4C7517 #17756F
square
#401775 #75171D #4C7517 #17756F
split-complementary
#401775 #756F17 #1D7517
monochromatic
#0E051A #240D42 #401775 #5C21A8 #7930D6

Accessibility & contrast

On white

13.15
#401775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401775
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401775#FFFFFF#000000##FFFFFF
##4017751.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#323145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401775;
/* rgb */ color: rgb(64, 23, 117);
/* oklch */ color: oklch(32.8% 0.148 297.2);
Tailwind
colors: {
  custom: {
    50: '#7b599e',
    500: '#401775',
    950: '#000000',
  },
}
SCSS
$custom: #401775;
$custom-light: #7b599e;
$custom-dark: #000000;
JSON
{
  "hex": "#401775",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 266.17,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32832,
    "c": 0.14765,
    "h": 297.2
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#401775
secondary
#7BAA3D
accent
#EA3E9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401775

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

Preview Lab → · Contrast checker → · Palette generator →

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