#405B2D#405B2D

#405B2D is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.7% C 0.078 H 133.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#405B2D
RGBrgb(64, 91, 45)
HSLhsl(95, 34%, 27%)
HSVhsv(95, 51%, 36%)
CMYKcmyk(29.7%, 0%, 50.5%, 64.3%)
CIE-LABlab(35.52, -19.41, 23.24)
CIE-LCHlch(35.52, 30.28, 129.87°)
OKLaboklab(43.74% -0.0535 0.0562)
OKLCHoklch(43.74% 0.078 133.6)
XYZxyz(6.3290, 8.7614, 3.8398)
Luminance0.0876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B2D #482D5B
analogous
#575B2D #405B2D #2D5B31
triadic
#405B2D #2D405B #5B2D40
tetradic
#405B2D #2D575B #482D5B #5B312D
square
#405B2D #2D575B #482D5B #5B312D
split-complementary
#405B2D #312D5B #5B2D57
monochromatic
#0E140A #233219 #405B2D #5D8441 #7AAC57

Accessibility & contrast

On white

7.63
#405B2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#405B2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B2D
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B2D#FFFFFF#000000##FFFFFF
##405B2D1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5529
Deuteranopia (green-blind)
#5A5330
Tritanopia (blue-blind)
#405850
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405b2d;
/* rgb */ color: rgb(64, 91, 45);
/* oklch */ color: oklch(43.7% 0.078 133.6);
Tailwind
colors: {
  custom: {
    50: '#768967',
    500: '#405b2d',
    950: '#000000',
  },
}
SCSS
$custom: #405b2d;
$custom-light: #768967;
$custom-dark: #000000;
JSON
{
  "hex": "#405b2d",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 45
  },
  "hsl": {
    "h": 95.217,
    "s": 33.824,
    "l": 26.667
  },
  "oklch": {
    "l": 0.43744,
    "c": 0.07757,
    "h": 133.6
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#405B2D
secondary
#77578D
accent
#5ECA9D
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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