#401773#401773

#401773 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.145 H 297.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#401773
RGBrgb(64, 23, 115)
HSLhsl(267, 67%, 27%)
HSVhsv(267, 80%, 45%)
CMYKcmyk(44.3%, 80%, 0%, 54.9%)
CIE-LABlab(19.80, 39.24, -44.88)
CIE-LCHlch(19.80, 59.62, 311.16°)
OKLaboklab(32.64% 0.0681 -0.1284)
OKLCHoklch(32.64% 0.145 297.9)
XYZxyz(5.5145, 2.9405, 16.4934)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401773 #4A7317
analogous
#171C73 #401773 #6E1773
triadic
#401773 #734017 #177340
tetradic
#401773 #73171C #4A7317 #17736E
square
#401773 #73171C #4A7317 #17736E
split-complementary
#401773 #736E17 #1C7317
monochromatic
#0E051A #240D40 #401773 #5C21A6 #792FD5

Accessibility & contrast

On white

13.22
#401773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401773
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401773#FFFFFF#000000##FFFFFF
##4017731.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#333044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401773;
/* rgb */ color: rgb(64, 23, 115);
/* oklch */ color: oklch(32.6% 0.145 297.9);
Tailwind
colors: {
  custom: {
    50: '#7b599c',
    500: '#401773',
    950: '#000000',
  },
}
SCSS
$custom: #401773;
$custom-light: #7b599c;
$custom-dark: #000000;
JSON
{
  "hex": "#401773",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 266.739,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32643,
    "c": 0.14537,
    "h": 297.9
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#401773
secondary
#79A93D
accent
#EA3E9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401773

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

Preview Lab → · Contrast checker → · Palette generator →

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