#40541F#40541F

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

Color values

HEX#40541F
RGBrgb(64, 84, 31)
HSLhsl(83, 46%, 23%)
HSVhsv(83, 63%, 33%)
CMYKcmyk(23.8%, 0%, 63.1%, 67.1%)
CIE-LABlab(32.98, -17.37, 27.93)
CIE-LCHlch(32.98, 32.89, 121.87°)
OKLaboklab(41.63% -0.0491 0.0651)
OKLCHoklch(41.63% 0.082 127)
XYZxyz(5.5320, 7.5295, 2.4579)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40541F #331F54
analogous
#544E1F #40541F #25541F
triadic
#40541F #1F4054 #541F40
tetradic
#40541F #1F544E #331F54 #541F25
square
#40541F #1F544E #331F54 #541F25
split-complementary
#40541F #1F2554 #4E1F54
monochromatic
#111608 #1E270F #40541F #62812F #84AD40

Accessibility & contrast

On white

8.38
#40541F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#40541F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40541F
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40541F#FFFFFF#000000##FFFFFF
##40541F1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E19
Deuteranopia (green-blind)
#564D23
Tritanopia (blue-blind)
#425048
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40541f;
/* rgb */ color: rgb(64, 84, 31);
/* oklch */ color: oklch(41.6% 0.082 127.0);
Tailwind
colors: {
  custom: {
    50: '#76845d',
    500: '#40541f',
    950: '#000000',
  },
}
SCSS
$custom: #40541f;
$custom-light: #76845d;
$custom-dark: #000000;
JSON
{
  "hex": "#40541f",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 31
  },
  "hsl": {
    "h": 82.642,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.08153,
    "h": 127
  },
  "luminance": 0.0753
}

Semantic roles & 50–950 ramp

primary
#40541F
secondary
#5F4689
accent
#52D684
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40541F

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

Preview Lab → · Contrast checker → · Palette generator →

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