#405D2E#405D2E

#405D2E is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 44.3% C 0.080 H 134.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#405D2E
RGBrgb(64, 93, 46)
HSLhsl(97, 34%, 27%)
HSVhsv(97, 51%, 36%)
CMYKcmyk(31.2%, 0%, 50.5%, 63.5%)
CIE-LABlab(36.21, -20.33, 23.52)
CIE-LCHlch(36.21, 31.09, 130.83°)
OKLaboklab(44.3% -0.056 0.0569)
OKLCHoklch(44.3% 0.08 134.6)
XYZxyz(6.5217, 9.1157, 4.0001)
Luminance0.0912 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D2E #4B2E5D
analogous
#585D2E #405D2E #2E5D33
triadic
#405D2E #2E405D #5D2E40
tetradic
#405D2E #2E585D #4B2E5D #5D332E
square
#405D2E #2E585D #4B2E5D #5D332E
split-complementary
#405D2E #332E5D #5D2E58
monochromatic
#0E140A #24341A #405D2E #5C8642 #79AD59

Accessibility & contrast

On white

7.44
#405D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#405D2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D2E
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D2E#FFFFFF#000000##FFFFFF
##405D2E1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60572A
Deuteranopia (green-blind)
#5C5431
Tritanopia (blue-blind)
#405A52
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d2e;
/* rgb */ color: rgb(64, 93, 46);
/* oklch */ color: oklch(44.3% 0.080 134.6);
Tailwind
colors: {
  custom: {
    50: '#768b68',
    500: '#405d2e',
    950: '#000000',
  },
}
SCSS
$custom: #405d2e;
$custom-light: #768b68;
$custom-dark: #000000;
JSON
{
  "hex": "#405d2e",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 46
  },
  "hsl": {
    "h": 97.021,
    "s": 33.813,
    "l": 27.255
  },
  "oklch": {
    "l": 0.44304,
    "c": 0.07979,
    "h": 134.6
  },
  "luminance": 0.09116
}

Semantic roles & 50–950 ramp

primary
#405D2E
secondary
#7A588F
accent
#5ECAA1
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080C06
muted
#7B7D7A

Preview Lab

Preview with #405D2E

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

Preview Lab → · Contrast checker → · Palette generator →

#405D2E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva