#405B2F#405B2F

#405B2F is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.8% C 0.075 H 134.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#405B2F
RGBrgb(64, 91, 47)
HSLhsl(97, 32%, 27%)
HSVhsv(97, 48%, 36%)
CMYKcmyk(29.7%, 0%, 48.4%, 64.3%)
CIE-LABlab(35.55, -19.13, 22.13)
CIE-LCHlch(35.55, 29.25, 130.83°)
OKLaboklab(43.78% -0.0526 0.0538)
OKLCHoklch(43.78% 0.075 134.4)
XYZxyz(6.3684, 8.7772, 4.0474)
Luminance0.0878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B2F #4A2F5B
analogous
#565B2F #405B2F #2F5B34
triadic
#405B2F #2F405B #5B2F40
tetradic
#405B2F #2F565B #4A2F5B #5B342F
square
#405B2F #2F565B #4A2F5B #5B342F
split-complementary
#405B2F #342F5B #5B2F56
monochromatic
#0E140A #24331A #405B2F #5C8344 #79AA5A

Accessibility & contrast

On white

7.62
#405B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#405B2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B2F
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B2F#FFFFFF#000000##FFFFFF
##405B2F1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405b2f;
/* rgb */ color: rgb(64, 91, 47);
/* oklch */ color: oklch(43.8% 0.075 134.4);
Tailwind
colors: {
  custom: {
    50: '#768968',
    500: '#405b2f',
    950: '#000000',
  },
}
SCSS
$custom: #405b2f;
$custom-light: #768968;
$custom-dark: #000000;
JSON
{
  "hex": "#405b2f",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 47
  },
  "hsl": {
    "h": 96.818,
    "s": 31.884,
    "l": 27.059
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.07523,
    "h": 134.4
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#405B2F
secondary
#79598D
accent
#60C8A0
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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