#405B2C#405B2C

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

Color values

HEX#405B2C
RGBrgb(64, 91, 44)
HSLhsl(94, 35%, 26%)
HSVhsv(94, 52%, 36%)
CMYKcmyk(29.7%, 0%, 51.6%, 64.3%)
CIE-LABlab(35.51, -19.55, 23.79)
CIE-LCHlch(35.51, 30.80, 129.41°)
OKLaboklab(43.73% -0.054 0.0573)
OKLCHoklch(43.73% 0.079 133.3)
XYZxyz(6.3099, 8.7538, 3.7396)
Luminance0.0875 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B2C #472C5B
analogous
#585B2C #405B2C #2C5B30
triadic
#405B2C #2C405B #5B2C40
tetradic
#405B2C #2C585B #472C5B #5B302C
square
#405B2C #2C585B #472C5B #5B302C
split-complementary
#405B2C #302C5B #5B2C58
monochromatic
#0F150A #233218 #405B2C #5D8440 #7AAD55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405B2C#FFFFFF#000000##FFFFFF
##405B2C1.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)
#5E5528
Deuteranopia (green-blind)
#5A532F
Tritanopia (blue-blind)
#405850
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b2c;
/* rgb */ color: rgb(64, 91, 44);
/* oklch */ color: oklch(43.7% 0.079 133.3);
Tailwind
colors: {
  custom: {
    50: '#768966',
    500: '#405b2c',
    950: '#000000',
  },
}
SCSS
$custom: #405b2c;
$custom-light: #768966;
$custom-dark: #000000;
JSON
{
  "hex": "#405b2c",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 44
  },
  "hsl": {
    "h": 94.468,
    "s": 34.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.43727,
    "c": 0.07873,
    "h": 133.3
  },
  "luminance": 0.08754
}

Semantic roles & 50–950 ramp

primary
#405B2C
secondary
#76568D
accent
#5DCB9C
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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