#400A3D#400A3D

#400A3D is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.8% C 0.104 H 330.5°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#400A3D
RGBrgb(64, 10, 61)
HSLhsl(303, 73%, 15%)
HSVhsv(303, 84%, 25%)
CMYKcmyk(0%, 84.4%, 4.7%, 74.9%)
CIE-LABlab(13.50, 32.01, -18.65)
CIE-LCHlch(13.50, 37.05, 329.78°)
OKLaboklab(26.81% 0.0909 -0.0514)
OKLCHoklch(26.81% 0.104 330.5)
XYZxyz(3.0652, 1.6442, 4.5699)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A3D #0A400D
analogous
#280A40 #400A3D #400A22
triadic
#400A3D #3D400A #0A3D40
tetradic
#400A3D #40280A #0A400D #0A2240
square
#400A3D #40280A #0A400D #0A2240
split-complementary
#400A3D #22400A #0A4028
monochromatic
#1A0419 #1A0419 #400A3D #75126F #AA1BA2

Accessibility & contrast

On white

15.80
#400A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400A3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A3D
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A3D#FFFFFF#000000##FFFFFF
##400A3D1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051E3E
Deuteranopia (green-blind)
#1B253C
Tritanopia (blue-blind)
#431123
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400a3d;
/* rgb */ color: rgb(64, 10, 61);
/* oklch */ color: oklch(26.8% 0.104 330.5);
Tailwind
colors: {
  custom: {
    50: '#775072',
    500: '#400a3d',
    950: '#000000',
  },
}
SCSS
$custom: #400a3d;
$custom-light: #775072;
$custom-dark: #000000;
JSON
{
  "hex": "#400a3d",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 61
  },
  "hsl": {
    "h": 303.333,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2681,
    "c": 0.10447,
    "h": 330.5
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#400A3D
secondary
#297D2D
accent
#F04238
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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