#401856#401856

#401856 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.111 H 311.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#401856
RGBrgb(64, 24, 86)
HSLhsl(279, 56%, 22%)
HSVhsv(279, 72%, 34%)
CMYKcmyk(25.6%, 72.1%, 0%, 66.3%)
CIE-LABlab(17.53, 31.12, -29.48)
CIE-LCHlch(17.53, 42.86, 316.55°)
OKLaboklab(30.26% 0.0728 -0.0832)
OKLCHoklch(30.26% 0.111 311.2)
XYZxyz(4.1204, 2.4152, 9.0514)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401856 #2E5618
analogous
#211856 #401856 #56184D
triadic
#401856 #564018 #185640
tetradic
#401856 #562118 #2E5618 #184D56
square
#401856 #562118 #2E5618 #184D56
split-complementary
#401856 #4D5618 #185621
monochromatic
#120718 #1C0B26 #401856 #642586 #8733B6

Accessibility & contrast

On white

14.16
#401856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401856
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401856#FFFFFF#000000##FFFFFF
##4018561.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#112C55
Tritanopia (blue-blind)
#3D2534
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401856;
/* rgb */ color: rgb(64, 24, 86);
/* oklch */ color: oklch(30.3% 0.111 311.2);
Tailwind
colors: {
  custom: {
    50: '#775886',
    500: '#401856',
    950: '#000000',
  },
}
SCSS
$custom: #401856;
$custom-light: #775886;
$custom-dark: #000000;
JSON
{
  "hex": "#401856",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 278.71,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30265,
    "c": 0.11051,
    "h": 311.2
  },
  "luminance": 0.02415
}

Semantic roles & 50–950 ramp

primary
#401856
secondary
#598D3D
accent
#E0487E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401856

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

Preview Lab → · Contrast checker → · Palette generator →

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