#400D20#400D20

#400D20 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.6% C 0.080 H 2.0°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#400D20
RGBrgb(64, 13, 32)
HSLhsl(338, 66%, 15%)
HSVhsv(338, 80%, 25%)
CMYKcmyk(0%, 79.7%, 50%, 74.9%)
CIE-LABlab(12.50, 26.25, 0.98)
CIE-LCHlch(12.50, 26.27, 2.13°)
OKLaboklab(25.61% 0.0804 0.0028)
OKLCHoklch(25.61% 0.08 2)
XYZxyz(2.5192, 1.4824, 1.5197)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D20 #0D402D
analogous
#400D39 #400D20 #40130D
triadic
#400D20 #20400D #0D2040
tetradic
#400D20 #39400D #0D402D #130D40
square
#400D20 #39400D #0D402D #130D40
split-complementary
#400D20 #0D4013 #0D3940
monochromatic
#19050D #19050D #400D20 #731739 #A62253

Accessibility & contrast

On white

16.20
#400D20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400D20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D20
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D20#FFFFFF#000000##FFFFFF
##400D201.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181A20
Deuteranopia (green-blind)
#26241F
Tritanopia (blue-blind)
#460615
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d20;
/* rgb */ color: rgb(64, 13, 32);
/* oklch */ color: oklch(25.6% 0.080 2.0);
Tailwind
colors: {
  custom: {
    50: '#78505b',
    500: '#400d20',
    950: '#000000',
  },
}
SCSS
$custom: #400d20;
$custom-light: #78505b;
$custom-dark: #000000;
JSON
{
  "hex": "#400d20",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 32
  },
  "hsl": {
    "h": 337.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25613,
    "c": 0.08042,
    "h": 2
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#400D20
secondary
#2D7C5E
accent
#E9AA3F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400D20

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

Preview Lab → · Contrast checker → · Palette generator →

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