#401054#401054

#401054 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.119 H 313.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#401054
RGBrgb(64, 16, 84)
HSLhsl(282, 68%, 20%)
HSVhsv(282, 81%, 33%)
CMYKcmyk(23.8%, 81%, 0%, 67.1%)
CIE-LABlab(16.01, 34.49, -30.58)
CIE-LCHlch(16.01, 46.09, 318.44°)
OKLaboklab(29.13% 0.0825 -0.0864)
OKLCHoklch(29.13% 0.119 313.7)
XYZxyz(3.8996, 2.1008, 8.5859)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401054 #245410
analogous
#1E1054 #401054 #541046
triadic
#401054 #544010 #105440
tetradic
#401054 #541E10 #245410 #104654
square
#401054 #541E10 #245410 #104654
split-complementary
#401054 #465410 #10541E
monochromatic
#14051A #190621 #401054 #671A87 #8E24BB

Accessibility & contrast

On white

14.79
#401054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401054
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401054#FFFFFF#000000##FFFFFF
##4010541.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#0A2953
Tritanopia (blue-blind)
#3E1F31
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401054;
/* rgb */ color: rgb(64, 16, 84);
/* oklch */ color: oklch(29.1% 0.119 313.7);
Tailwind
colors: {
  custom: {
    50: '#785485',
    500: '#401054',
    950: '#000000',
  },
}
SCSS
$custom: #401054;
$custom-light: #785485;
$custom-dark: #000000;
JSON
{
  "hex": "#401054",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 282.353,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2913,
    "c": 0.11945,
    "h": 313.7
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#401054
secondary
#4D8E32
accent
#EB3D70
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401054

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

Preview Lab → · Contrast checker → · Palette generator →

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