#40541A#40541A

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

Color values

HEX#40541A
RGBrgb(64, 84, 26)
HSLhsl(81, 53%, 22%)
HSVhsv(81, 69%, 33%)
CMYKcmyk(23.8%, 0%, 69%, 67.1%)
CIE-LABlab(32.93, -17.85, 30.41)
CIE-LCHlch(32.93, 35.26, 120.41°)
OKLaboklab(41.57% -0.0509 0.0697)
OKLCHoklch(41.57% 0.086 126.1)
XYZxyz(5.4711, 7.5051, 2.1375)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40541A #2E1A54
analogous
#544B1A #40541A #23541A
triadic
#40541A #1A4054 #541A40
tetradic
#40541A #1A544B #2E1A54 #541A23
square
#40541A #1A544B #2E1A54 #541A23
split-complementary
#40541A #1A2354 #4B1A54
monochromatic
#121707 #1C250C #40541A #648328 #87B137

Accessibility & contrast

On white

8.40
#40541A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40541A
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40541A#FFFFFF#000000##FFFFFF
##40541A1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E13
Deuteranopia (green-blind)
#564D1E
Tritanopia (blue-blind)
#435048
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40541a;
/* rgb */ color: rgb(64, 84, 26);
/* oklch */ color: oklch(41.6% 0.086 126.1);
Tailwind
colors: {
  custom: {
    50: '#77845a',
    500: '#40541a',
    950: '#000000',
  },
}
SCSS
$custom: #40541a;
$custom-light: #77845a;
$custom-dark: #000000;
JSON
{
  "hex": "#40541a",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 26
  },
  "hsl": {
    "h": 80.69,
    "s": 52.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41571,
    "c": 0.08633,
    "h": 126.1
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#40541A
secondary
#59408A
accent
#4CDC7D
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40541A

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

Preview Lab → · Contrast checker → · Palette generator →

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