#40541B#40541B

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

Color values

HEX#40541B
RGBrgb(64, 84, 27)
HSLhsl(81, 51%, 22%)
HSVhsv(81, 68%, 33%)
CMYKcmyk(23.8%, 0%, 67.9%, 67.1%)
CIE-LABlab(32.94, -17.76, 29.93)
CIE-LCHlch(32.94, 34.80, 120.69°)
OKLaboklab(41.58% -0.0505 0.0689)
OKLCHoklch(41.58% 0.085 126.3)
XYZxyz(5.4825, 7.5097, 2.1974)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40541B #2F1B54
analogous
#544C1B #40541B #24541B
triadic
#40541B #1B4054 #541B40
tetradic
#40541B #1B544C #2F1B54 #541B24
square
#40541B #1B544C #2F1B54 #541B24
split-complementary
#40541B #1B2454 #4C1B54
monochromatic
#121707 #1D260C #40541B #63822A #87B139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40541B#FFFFFF#000000##FFFFFF
##40541B1.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)
#594E14
Deuteranopia (green-blind)
#564D1F
Tritanopia (blue-blind)
#435048
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40541b;
/* rgb */ color: rgb(64, 84, 27);
/* oklch */ color: oklch(41.6% 0.085 126.3);
Tailwind
colors: {
  custom: {
    50: '#77845a',
    500: '#40541b',
    950: '#000000',
  },
}
SCSS
$custom: #40541b;
$custom-light: #77845a;
$custom-dark: #000000;
JSON
{
  "hex": "#40541b",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 81.053,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41582,
    "c": 0.08541,
    "h": 126.3
  },
  "luminance": 0.0751
}

Semantic roles & 50–950 ramp

primary
#40541B
secondary
#5B418A
accent
#4DDB7F
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40541B

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

Preview Lab → · Contrast checker → · Palette generator →

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