#400541#400541

#400541 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.114 H 327.4°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#400541
RGBrgb(64, 5, 65)
HSLhsl(299, 86%, 14%)
HSVhsv(299, 92%, 25%)
CMYKcmyk(1.5%, 92.3%, 0%, 74.5%)
CIE-LABlab(13.11, 34.66, -22.09)
CIE-LCHlch(13.11, 41.11, 327.49°)
OKLaboklab(26.62% 0.0962 -0.0614)
OKLCHoklch(26.62% 0.114 327.4)
XYZxyz(3.1227, 1.5804, 5.1406)
Luminance0.0158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400541 #064105
analogous
#220541 #400541 #410524
triadic
#400541 #414005 #054140
tetradic
#400541 #412205 #064105 #052441
square
#400541 #412205 #064105 #052441
split-complementary
#400541 #244105 #054122
monochromatic
#1C021C #1C021C #400541 #78097A #B00EB3

Accessibility & contrast

On white

15.96
#400541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400541
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400541#FFFFFF#000000##FFFFFF
##4005411.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#162440
Tritanopia (blue-blind)
#421024
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400541;
/* rgb */ color: rgb(64, 5, 65);
/* oklch */ color: oklch(26.6% 0.114 327.4);
Tailwind
colors: {
  custom: {
    50: '#784e76',
    500: '#400541',
    950: '#000000',
  },
}
SCSS
$custom: #400541;
$custom-light: #784e76;
$custom-dark: #000000;
JSON
{
  "hex": "#400541",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 299,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26623,
    "c": 0.11415,
    "h": 327.4
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#400541
secondary
#228120
accent
#FC2C2F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400541

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

Preview Lab → · Contrast checker → · Palette generator →

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