#40400D#40400D

#40400D is a dark, moderate yellow. Relative luminance 0.048; OKLCH L 36.1% C 0.069 H 109.4°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#40400D
RGBrgb(64, 64, 13)
HSLhsl(60, 66%, 15%)
HSVhsv(60, 80%, 25%)
CMYKcmyk(0%, 0%, 79.7%, 74.9%)
CIE-LABlab(26.12, -7.32, 29.47)
CIE-LCHlch(26.12, 30.37, 103.95°)
OKLaboklab(36.06% -0.0231 0.0654)
OKLCHoklch(36.06% 0.069 109.4)
XYZxyz(4.0205, 4.7860, 1.0927)
Luminance0.0479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40400D #0D0D40
analogous
#40260D #40400D #26400D
triadic
#40400D #0D4040 #400D40
tetradic
#40400D #0D4026 #0D0D40 #400D26
square
#40400D #0D4026 #0D0D40 #400D26
split-complementary
#40400D #0D2640 #260D40
monochromatic
#191905 #191905 #40400D #737317 #A6A622

Accessibility & contrast

On white

10.73
#40400D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40400D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40400D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40400D#FFFFFF#000000##FFFFFF
##40400D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D05
Deuteranopia (green-blind)
#463F11
Tritanopia (blue-blind)
#453B36
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40400d;
/* rgb */ color: rgb(64, 64, 13);
/* oklch */ color: oklch(36.1% 0.069 109.4);
Tailwind
colors: {
  custom: {
    50: '#777450',
    500: '#40400d',
    950: '#000000',
  },
}
SCSS
$custom: #40400d;
$custom-light: #777450;
$custom-dark: #000000;
JSON
{
  "hex": "#40400d",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 13
  },
  "hsl": {
    "h": 60,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.36055,
    "c": 0.0694,
    "h": 109.4
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#40400D
secondary
#2D2D7C
accent
#3FE93F
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40400D

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

Preview Lab → · Contrast checker → · Palette generator →

#40400D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva