#40540D#40540D

#40540D is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.5% C 0.096 H 124.7°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#40540D
RGBrgb(64, 84, 13)
HSLhsl(77, 73%, 19%)
HSVhsv(77, 85%, 33%)
CMYKcmyk(23.8%, 0%, 84.5%, 67.1%)
CIE-LABlab(32.83, -18.77, 35.84)
CIE-LCHlch(32.83, 40.46, 117.64°)
OKLaboklab(41.46% -0.0547 0.0789)
OKLCHoklch(41.46% 0.096 124.7)
XYZxyz(5.3574, 7.4596, 1.5383)
Luminance0.0746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40540D #210D54
analogous
#54450D #40540D #1D540D
triadic
#40540D #0D4054 #540D40
tetradic
#40540D #0D5445 #210D54 #540D1D
square
#40540D #0D5445 #210D54 #540D1D
split-complementary
#40540D #0D1D54 #450D54
monochromatic
#141A04 #181F05 #40540D #688915 #91BE1D

Accessibility & contrast

On white

8.43
#40540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#40540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40540D
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40540D#FFFFFF#000000##FFFFFF
##40540D1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E00
Deuteranopia (green-blind)
#574D14
Tritanopia (blue-blind)
#434F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40540d;
/* rgb */ color: rgb(64, 84, 13);
/* oklch */ color: oklch(41.5% 0.096 124.7);
Tailwind
colors: {
  custom: {
    50: '#788453',
    500: '#40540d',
    950: '#000000',
  },
}
SCSS
$custom: #40540d;
$custom-light: #788453;
$custom-dark: #000000;
JSON
{
  "hex": "#40540d",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 76.901,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.41459,
    "c": 0.096,
    "h": 124.7
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#40540D
secondary
#492E8F
accent
#38F06C
background
#F7F8F4
surface
#EDEFE7
border
#C8CAC3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40540D

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

Preview Lab → · Contrast checker → · Palette generator →

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