#401556#401556

#401556 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.115 H 311.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#401556
RGBrgb(64, 21, 86)
HSLhsl(280, 61%, 21%)
HSVhsv(280, 76%, 34%)
CMYKcmyk(25.6%, 75.6%, 0%, 66.3%)
CIE-LABlab(16.98, 32.65, -30.36)
CIE-LCHlch(16.98, 44.59, 317.08°)
OKLaboklab(29.87% 0.0765 -0.0858)
OKLCHoklch(29.87% 0.115 311.7)
XYZxyz(4.0619, 2.2983, 9.0319)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401556 #2B5615
analogous
#1F1556 #401556 #56154B
triadic
#401556 #564015 #155640
tetradic
#401556 #561F15 #2B5615 #154B56
square
#401556 #561F15 #2B5615 #154B56
split-complementary
#401556 #4B5615 #15561F
monochromatic
#120619 #1B0925 #401556 #652187 #892DB8

Accessibility & contrast

On white

14.39
#401556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401556
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401556#FFFFFF#000000##FFFFFF
##4015561.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#0D2B55
Tritanopia (blue-blind)
#3D2333
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401556;
/* rgb */ color: rgb(64, 21, 86);
/* oklch */ color: oklch(29.9% 0.115 311.7);
Tailwind
colors: {
  custom: {
    50: '#785786',
    500: '#401556',
    950: '#000000',
  },
}
SCSS
$custom: #401556;
$custom-light: #785786;
$custom-dark: #000000;
JSON
{
  "hex": "#401556",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 279.692,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29871,
    "c": 0.11494,
    "h": 311.7
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#401556
secondary
#568E39
accent
#E4447A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401556

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

Preview Lab → · Contrast checker → · Palette generator →

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