#401764#401764

#401764 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.128 H 304.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#401764
RGBrgb(64, 23, 100)
HSLhsl(272, 63%, 24%)
HSVhsv(272, 77%, 39%)
CMYKcmyk(36%, 77%, 0%, 60.8%)
CIE-LABlab(18.47, 35.23, -37.29)
CIE-LCHlch(18.47, 51.30, 313.37°)
OKLaboklab(31.29% 0.0719 -0.1061)
OKLCHoklch(31.29% 0.128 304.1)
XYZxyz(4.7205, 2.6229, 12.3117)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401764 #3B6417
analogous
#1A1764 #401764 #641762
triadic
#401764 #644017 #176440
tetradic
#401764 #641A17 #3B6417 #176264
square
#401764 #641A17 #3B6417 #176264
split-complementary
#401764 #626417 #17641A
monochromatic
#100619 #200C32 #401764 #602296 #802EC8

Accessibility & contrast

On white

13.77
#401764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401764
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401764#FFFFFF#000000##FFFFFF
##4017641.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#392A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401764;
/* rgb */ color: rgb(64, 23, 100);
/* oklch */ color: oklch(31.3% 0.128 304.1);
Tailwind
colors: {
  custom: {
    50: '#795891',
    500: '#401764',
    950: '#000000',
  },
}
SCSS
$custom: #401764;
$custom-light: #795891;
$custom-dark: #000000;
JSON
{
  "hex": "#401764",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 271.948,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31285,
    "c": 0.12816,
    "h": 304.1
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#401764
secondary
#689A3C
accent
#E6428F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #401764

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

Preview Lab → · Contrast checker → · Palette generator →

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