#40541D#40541D

#40541D is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.6% C 0.084 H 126.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#40541D
RGBrgb(64, 84, 29)
HSLhsl(82, 49%, 22%)
HSVhsv(82, 65%, 33%)
CMYKcmyk(23.8%, 0%, 65.5%, 67.1%)
CIE-LABlab(32.96, -17.57, 28.94)
CIE-LCHlch(32.96, 33.86, 121.26°)
OKLaboklab(41.61% -0.0498 0.067)
OKLCHoklch(41.61% 0.084 126.6)
XYZxyz(5.5064, 7.5193, 2.3234)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40541D #311D54
analogous
#544D1D #40541D #25541D
triadic
#40541D #1D4054 #541D40
tetradic
#40541D #1D544D #311D54 #541D25
square
#40541D #1D544D #311D54 #541D25
split-complementary
#40541D #1D2554 #4D1D54
monochromatic
#111708 #1D270D #40541D #63812D #85AF3C

Accessibility & contrast

On white

8.39
#40541D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#40541D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40541D
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40541D#FFFFFF#000000##FFFFFF
##40541D1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E17
Deuteranopia (green-blind)
#564D21
Tritanopia (blue-blind)
#435048
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40541d;
/* rgb */ color: rgb(64, 84, 29);
/* oklch */ color: oklch(41.6% 0.084 126.6);
Tailwind
colors: {
  custom: {
    50: '#77845b',
    500: '#40541d',
    950: '#000000',
  },
}
SCSS
$custom: #40541d;
$custom-light: #77845b;
$custom-dark: #000000;
JSON
{
  "hex": "#40541d",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 29
  },
  "hsl": {
    "h": 81.818,
    "s": 48.673,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41606,
    "c": 0.08352,
    "h": 126.6
  },
  "luminance": 0.07519
}

Semantic roles & 50–950 ramp

primary
#40541D
secondary
#5D4489
accent
#50D881
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40541D

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

Preview Lab → · Contrast checker → · Palette generator →

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