#400D51#400D51

#400D51 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.6% C 0.120 H 315.9°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#400D51
RGBrgb(64, 13, 81)
HSLhsl(285, 72%, 18%)
HSVhsv(285, 84%, 32%)
CMYKcmyk(21%, 84%, 0%, 68.2%)
CIE-LABlab(15.34, 35.03, -29.62)
CIE-LCHlch(15.34, 45.87, 319.79°)
OKLaboklab(28.58% 0.0861 -0.0835)
OKLCHoklch(28.58% 0.12 315.9)
XYZxyz(3.7432, 1.9721, 7.9665)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D51 #1E510D
analogous
#1E0D51 #400D51 #510D40
triadic
#400D51 #51400D #0D5140
tetradic
#400D51 #511E0D #1E510D #0D4051
square
#400D51 #511E0D #1E510D #0D4051
split-complementary
#400D51 #40510D #0D511E
monochromatic
#15041A #16051C #400D51 #6A1586 #931EBA

Accessibility & contrast

On white

15.06
#400D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D51
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D51#FFFFFF#000000##FFFFFF
##400D511.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#0C2850
Tritanopia (blue-blind)
#3F1C2F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400d51;
/* rgb */ color: rgb(64, 13, 81);
/* oklch */ color: oklch(28.6% 0.120 315.9);
Tailwind
colors: {
  custom: {
    50: '#785282',
    500: '#400d51',
    950: '#000000',
  },
}
SCSS
$custom: #400d51;
$custom-light: #785282;
$custom-dark: #000000;
JSON
{
  "hex": "#400d51",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 81
  },
  "hsl": {
    "h": 285,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28582,
    "c": 0.11997,
    "h": 315.9
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#400D51
secondary
#458C2E
accent
#EF3966
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400D51

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

Preview Lab → · Contrast checker → · Palette generator →

#400D51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva