#400A20#400A20

#400A20 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.3% C 0.084 H 0.8°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#400A20
RGBrgb(64, 10, 32)
HSLhsl(336, 73%, 15%)
HSVhsv(336, 84%, 25%)
CMYKcmyk(0%, 84.4%, 50%, 74.9%)
CIE-LABlab(12.04, 27.53, 0.31)
CIE-LCHlch(12.04, 27.54, 0.64°)
OKLaboklab(25.27% 0.0845 0.0011)
OKLCHoklch(25.27% 0.084 0.8)
XYZxyz(2.4838, 1.4117, 1.5079)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A20 #0A402A
analogous
#400A3B #400A20 #400F0A
triadic
#400A20 #20400A #0A2040
tetradic
#400A20 #3B400A #0A402A #0F0A40
square
#400A20 #3B400A #0A402A #0F0A40
split-complementary
#400A20 #0A400F #0A3B40
monochromatic
#1A040D #1A040D #400A20 #75123A #AA1B55

Accessibility & contrast

On white

16.38
#400A20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400A20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A20
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A20#FFFFFF#000000##FFFFFF
##400A201.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161921
Deuteranopia (green-blind)
#25231F
Tritanopia (blue-blind)
#460313
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400a20;
/* rgb */ color: rgb(64, 10, 32);
/* oklch */ color: oklch(25.3% 0.084 0.8);
Tailwind
colors: {
  custom: {
    50: '#784f5b',
    500: '#400a20',
    950: '#000000',
  },
}
SCSS
$custom: #400a20;
$custom-light: #784f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#400a20",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 32
  },
  "hsl": {
    "h": 335.556,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25273,
    "c": 0.08449,
    "h": 0.8
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#400A20
secondary
#297D5B
accent
#F0A538
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400A20

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

Preview Lab → · Contrast checker → · Palette generator →

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