#401559#401559

#401559 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.1% C 0.118 H 310.0°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#401559
RGBrgb(64, 21, 89)
HSLhsl(278, 62%, 22%)
HSVhsv(278, 76%, 35%)
CMYKcmyk(28.1%, 76.4%, 0%, 65.1%)
CIE-LABlab(17.22, 33.39, -32.00)
CIE-LCHlch(17.22, 46.25, 316.22°)
OKLaboklab(30.11% 0.0761 -0.0906)
OKLCHoklch(30.11% 0.118 310)
XYZxyz(4.1853, 2.3477, 9.6819)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401559 #2E5915
analogous
#1E1559 #401559 #591550
triadic
#401559 #594015 #155940
tetradic
#401559 #591E15 #2E5915 #155059
square
#401559 #591E15 #2E5915 #155059
split-complementary
#401559 #505915 #15591E
monochromatic
#120619 #1C0927 #401559 #64218B #872CBC

Accessibility & contrast

On white

14.29
#401559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401559
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401559#FFFFFF#000000##FFFFFF
##4015591.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#082B58
Tritanopia (blue-blind)
#3D2435
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401559;
/* rgb */ color: rgb(64, 21, 89);
/* oklch */ color: oklch(30.1% 0.118 310.0);
Tailwind
colors: {
  custom: {
    50: '#785788',
    500: '#401559',
    950: '#000000',
  },
}
SCSS
$custom: #401559;
$custom-light: #785788;
$custom-dark: #000000;
JSON
{
  "hex": "#401559",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 277.941,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30113,
    "c": 0.1183,
    "h": 310
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#401559
secondary
#599139
accent
#E5437E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401559

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

Preview Lab → · Contrast checker → · Palette generator →

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