#40401B#40401B

#40401B is a dark, muted yellow. Relative luminance 0.048; OKLCH L 36.2% C 0.056 H 108.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#40401B
RGBrgb(64, 64, 27)
HSLhsl(60, 41%, 18%)
HSVhsv(60, 58%, 25%)
CMYKcmyk(0%, 0%, 57.8%, 74.9%)
CIE-LABlab(26.26, -6.16, 22.38)
CIE-LCHlch(26.26, 23.21, 105.39°)
OKLaboklab(36.22% -0.018 0.0527)
OKLCHoklch(36.22% 0.056 108.9)
XYZxyz(4.1457, 4.8360, 1.7518)
Luminance0.0484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40401B #1B1B40
analogous
#402D1B #40401B #2D401B
triadic
#40401B #1B4040 #401B40
tetradic
#40401B #1B402D #1B1B40 #401B2D
square
#40401B #1B402D #1B1B40 #401B2D
split-complementary
#40401B #1B2D40 #2D1B40
monochromatic
#161609 #161609 #40401B #6B6B2D #96963F

Accessibility & contrast

On white

10.68
#40401B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#40401B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40401B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40401B#FFFFFF#000000##FFFFFF
##40401B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D18
Deuteranopia (green-blind)
#463F1D
Tritanopia (blue-blind)
#443C38
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40401b;
/* rgb */ color: rgb(64, 64, 27);
/* oklch */ color: oklch(36.2% 0.056 108.9);
Tailwind
colors: {
  custom: {
    50: '#767458',
    500: '#40401b',
    950: '#000000',
  },
}
SCSS
$custom: #40401b;
$custom-light: #767458;
$custom-dark: #000000;
JSON
{
  "hex": "#40401b",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 27
  },
  "hsl": {
    "h": 60,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36219,
    "c": 0.05567,
    "h": 108.9
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#40401B
secondary
#414175
accent
#57D157
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#080803
muted
#7B7B78

Preview Lab

Preview with #40401B

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

Preview Lab → · Contrast checker → · Palette generator →

#40401B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva