#405A2F#405A2F

#405A2F is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.5% C 0.074 H 134.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#405A2F
RGBrgb(64, 90, 47)
HSLhsl(96, 31%, 27%)
HSVhsv(96, 48%, 35%)
CMYKcmyk(28.9%, 0%, 47.8%, 64.7%)
CIE-LABlab(35.22, -18.59, 21.71)
CIE-LCHlch(35.22, 28.58, 130.57°)
OKLaboklab(43.51% -0.0511 0.0528)
OKLCHoklch(43.51% 0.074 134)
XYZxyz(6.2835, 8.6074, 4.0191)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A2F #492F5A
analogous
#565A2F #405A2F #2F5A34
triadic
#405A2F #2F405A #5A2F40
tetradic
#405A2F #2F565A #492F5A #5A342F
square
#405A2F #2F565A #492F5A #5A342F
split-complementary
#405A2F #342F5A #5A2F56
monochromatic
#0E140A #23321A #405A2F #5D8244 #79A95A

Accessibility & contrast

On white

7.72
#405A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#405A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A2F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A2F#FFFFFF#000000##FFFFFF
##405A2F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D542C
Deuteranopia (green-blind)
#595232
Tritanopia (blue-blind)
#405750
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405a2f;
/* rgb */ color: rgb(64, 90, 47);
/* oklch */ color: oklch(43.5% 0.074 134.0);
Tailwind
colors: {
  custom: {
    50: '#768868',
    500: '#405a2f',
    950: '#000000',
  },
}
SCSS
$custom: #405a2f;
$custom-light: #768868;
$custom-dark: #000000;
JSON
{
  "hex": "#405a2f",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 47
  },
  "hsl": {
    "h": 96.279,
    "s": 31.387,
    "l": 26.863
  },
  "oklch": {
    "l": 0.43508,
    "c": 0.07351,
    "h": 134
  },
  "luminance": 0.08608
}

Semantic roles & 50–950 ramp

primary
#405A2F
secondary
#78598C
accent
#60C89F
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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