#40400F#40400F

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

Color values

HEX#40400F
RGBrgb(64, 64, 15)
HSLhsl(60, 62%, 15%)
HSVhsv(60, 77%, 25%)
CMYKcmyk(0%, 0%, 76.6%, 74.9%)
CIE-LABlab(26.13, -7.19, 28.58)
CIE-LCHlch(26.13, 29.47, 104.13°)
OKLaboklab(36.07% -0.0225 0.064)
OKLCHoklch(36.07% 0.068 109.4)
XYZxyz(4.0341, 4.7914, 1.1642)
Luminance0.0479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40400F #0F0F40
analogous
#40270F #40400F #27400F
triadic
#40400F #0F4040 #400F40
tetradic
#40400F #0F4027 #0F0F40 #400F27
square
#40400F #0F4027 #0F0F40 #400F27
split-complementary
#40400F #0F2740 #270F40
monochromatic
#191906 #191906 #40400F #72721B #A3A326

Accessibility & contrast

On white

10.72
#40400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40400F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40400F#FFFFFF#000000##FFFFFF
##40400F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40400f;
/* rgb */ color: rgb(64, 64, 15);
/* oklch */ color: oklch(36.1% 0.068 109.4);
Tailwind
colors: {
  custom: {
    50: '#777451',
    500: '#40400f',
    950: '#000000',
  },
}
SCSS
$custom: #40400f;
$custom-light: #777451;
$custom-dark: #000000;
JSON
{
  "hex": "#40400f",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 60,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.36073,
    "c": 0.06782,
    "h": 109.4
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#40400F
secondary
#30307A
accent
#43E543
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40400F

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

Preview Lab → · Contrast checker → · Palette generator →

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