#405D2F#405D2F

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

Color values

HEX#405D2F
RGBrgb(64, 93, 47)
HSLhsl(98, 33%, 27%)
HSVhsv(98, 49%, 36%)
CMYKcmyk(31.2%, 0%, 49.5%, 63.5%)
CIE-LABlab(36.22, -20.19, 22.97)
CIE-LCHlch(36.22, 30.58, 131.31°)
OKLaboklab(44.32% -0.0555 0.0557)
OKLCHoklch(44.32% 0.079 134.9)
XYZxyz(6.5416, 9.1237, 4.1052)
Luminance0.0912 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D2F #4C2F5D
analogous
#575D2F #405D2F #2F5D35
triadic
#405D2F #2F405D #5D2F40
tetradic
#405D2F #2F575D #4C2F5D #5D352F
square
#405D2F #2F575D #4C2F5D #5D352F
split-complementary
#405D2F #352F5D #5D2F57
monochromatic
#0E140A #24341A #405D2F #5C8644 #79AC5B

Accessibility & contrast

On white

7.43
#405D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405D2F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D2F#FFFFFF#000000##FFFFFF
##405D2F1.007.432.827.43
#FFFFFF7.431.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405d2f;
/* rgb */ color: rgb(64, 93, 47);
/* oklch */ color: oklch(44.3% 0.079 134.9);
Tailwind
colors: {
  custom: {
    50: '#768b68',
    500: '#405d2f',
    950: '#000000',
  },
}
SCSS
$custom: #405d2f;
$custom-light: #768b68;
$custom-dark: #000000;
JSON
{
  "hex": "#405d2f",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 47
  },
  "hsl": {
    "h": 97.826,
    "s": 32.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.44321,
    "c": 0.07864,
    "h": 134.9
  },
  "luminance": 0.09124
}

Semantic roles & 50–950 ramp

primary
#405D2F
secondary
#7B598F
accent
#5FC9A2
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080C06
muted
#7B7D7A

Preview Lab

Preview with #405D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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