#401256#401256

#401256 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.119 H 312.2°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#401256
RGBrgb(64, 18, 86)
HSLhsl(281, 65%, 20%)
HSVhsv(281, 79%, 34%)
CMYKcmyk(25.6%, 79.1%, 0%, 66.3%)
CIE-LABlab(16.48, 34.08, -31.17)
CIE-LCHlch(16.48, 46.18, 317.55°)
OKLaboklab(29.51% 0.08 -0.0881)
OKLCHoklch(29.51% 0.119 312.2)
XYZxyz(4.0101, 2.1946, 9.0147)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401256 #285612
analogous
#1E1256 #401256 #56124A
triadic
#401256 #564012 #125640
tetradic
#401256 #561E12 #285612 #124A56
square
#401256 #561E12 #285612 #124A56
split-complementary
#401256 #4A5612 #12561E
monochromatic
#130519 #1A0723 #401256 #661D89 #8B27BB

Accessibility & contrast

On white

14.60
#401256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401256
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401256#FFFFFF#000000##FFFFFF
##4012561.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#092A55
Tritanopia (blue-blind)
#3D2133
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401256;
/* rgb */ color: rgb(64, 18, 86);
/* oklch */ color: oklch(29.5% 0.119 312.2);
Tailwind
colors: {
  custom: {
    50: '#785586',
    500: '#401256',
    950: '#000000',
  },
}
SCSS
$custom: #401256;
$custom-light: #785586;
$custom-dark: #000000;
JSON
{
  "hex": "#401256",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 280.588,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29513,
    "c": 0.11902,
    "h": 312.2
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#401256
secondary
#528F35
accent
#E83F76
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401256

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

Preview Lab → · Contrast checker → · Palette generator →

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