#401772#401772

#401772 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.144 H 298.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#401772
RGBrgb(64, 23, 114)
HSLhsl(267, 66%, 27%)
HSVhsv(267, 80%, 45%)
CMYKcmyk(43.9%, 79.8%, 0%, 55.3%)
CIE-LABlab(19.71, 38.97, -44.39)
CIE-LCHlch(19.71, 59.07, 311.28°)
OKLaboklab(32.55% 0.0684 -0.127)
OKLCHoklch(32.55% 0.144 298.3)
XYZxyz(5.4572, 2.9176, 16.1920)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401772 #497217
analogous
#171C72 #401772 #6E1772
triadic
#401772 #724017 #177240
tetradic
#401772 #72171C #497217 #17726E
square
#401772 #72171C #497217 #17726E
split-complementary
#401772 #726E17 #1C7217
monochromatic
#0E0519 #230D3F #401772 #5D21A5 #792ED5

Accessibility & contrast

On white

13.26
#401772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401772
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401772#FFFFFF#000000##FFFFFF
##4017721.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#332F44
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401772;
/* rgb */ color: rgb(64, 23, 114);
/* oklch */ color: oklch(32.5% 0.144 298.3);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#401772',
    950: '#000000',
  },
}
SCSS
$custom: #401772;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#401772",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 267.033,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32549,
    "c": 0.14423,
    "h": 298.3
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#401772
secondary
#78A83D
accent
#E93E9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401772

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

Preview Lab → · Contrast checker → · Palette generator →

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