#400D22#400D22

#400D22 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.7% C 0.081 H 359.5°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#400D22
RGBrgb(64, 13, 34)
HSLhsl(335, 66%, 15%)
HSVhsv(335, 80%, 25%)
CMYKcmyk(0%, 79.7%, 46.9%, 74.9%)
CIE-LABlab(12.57, 26.49, -0.41)
CIE-LCHlch(12.57, 26.50, 359.11°)
OKLaboklab(25.69% 0.0812 -0.0007)
OKLCHoklch(25.69% 0.081 359.5)
XYZxyz(2.5472, 1.4936, 1.6672)
Luminance0.0149 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D22 #0D402B
analogous
#400D3C #400D22 #40110D
triadic
#400D22 #22400D #0D2240
tetradic
#400D22 #3C400D #0D402B #110D40
square
#400D22 #3C400D #0D402B #110D40
split-complementary
#400D22 #0D4011 #0D3C40
monochromatic
#19050E #19050E #400D22 #73173D #A62258

Accessibility & contrast

On white

16.17
#400D22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D22
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D22#FFFFFF#000000##FFFFFF
##400D221.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171A23
Deuteranopia (green-blind)
#252421
Tritanopia (blue-blind)
#460716
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400d22;
/* rgb */ color: rgb(64, 13, 34);
/* oklch */ color: oklch(25.7% 0.081 359.5);
Tailwind
colors: {
  custom: {
    50: '#78505c',
    500: '#400d22',
    950: '#000000',
  },
}
SCSS
$custom: #400d22;
$custom-light: #78505c;
$custom-dark: #000000;
JSON
{
  "hex": "#400d22",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 34
  },
  "hsl": {
    "h": 335.294,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2569,
    "c": 0.0812,
    "h": 359.5
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#400D22
secondary
#2D7C5B
accent
#E9A33F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400D22

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

Preview Lab → · Contrast checker → · Palette generator →

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