#40540F#40540F

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

Color values

HEX#40540F
RGBrgb(64, 84, 15)
HSLhsl(77, 70%, 19%)
HSVhsv(77, 82%, 33%)
CMYKcmyk(23.8%, 0%, 82.1%, 67.1%)
CIE-LABlab(32.84, -18.66, 35.13)
CIE-LCHlch(32.84, 39.77, 117.98°)
OKLaboklab(41.47% -0.0542 0.0778)
OKLCHoklch(41.47% 0.095 124.9)
XYZxyz(5.3709, 7.4651, 1.6098)
Luminance0.0746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40540F #230F54
analogous
#54460F #40540F #1E540F
triadic
#40540F #0F4054 #540F40
tetradic
#40540F #0F5446 #230F54 #540F1E
square
#40540F #0F5446 #230F54 #540F1E
split-complementary
#40540F #0F1E54 #460F54
monochromatic
#141A05 #182006 #40540F #688818 #8FBC22

Accessibility & contrast

On white

8.42
#40540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40540F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40540F#FFFFFF#000000##FFFFFF
##40540F1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E02
Deuteranopia (green-blind)
#564D16
Tritanopia (blue-blind)
#435047
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40540f;
/* rgb */ color: rgb(64, 84, 15);
/* oklch */ color: oklch(41.5% 0.095 124.9);
Tailwind
colors: {
  custom: {
    50: '#778454',
    500: '#40540f',
    950: '#000000',
  },
}
SCSS
$custom: #40540f;
$custom-light: #778454;
$custom-dark: #000000;
JSON
{
  "hex": "#40540f",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 77.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.41473,
    "c": 0.09479,
    "h": 124.9
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#40540F
secondary
#4C318E
accent
#3BED6F
background
#F7F8F5
surface
#EDEFE8
border
#C8CAC4
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40540F

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

Preview Lab → · Contrast checker → · Palette generator →

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