#405C2F#405C2F

#405C2F is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 44.0% C 0.077 H 134.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#405C2F
RGBrgb(64, 92, 47)
HSLhsl(97, 32%, 27%)
HSVhsv(97, 49%, 36%)
CMYKcmyk(30.4%, 0%, 48.9%, 63.9%)
CIE-LABlab(35.89, -19.66, 22.55)
CIE-LCHlch(35.89, 29.92, 131.08°)
OKLaboklab(44.05% -0.0541 0.0547)
OKLCHoklch(44.05% 0.077 134.7)
XYZxyz(6.4544, 8.9493, 4.0761)
Luminance0.0895 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C2F #4B2F5C
analogous
#575C2F #405C2F #2F5C34
triadic
#405C2F #2F405C #5C2F40
tetradic
#405C2F #2F575C #4B2F5C #5C342F
square
#405C2F #2F575C #4B2F5C #5C342F
split-complementary
#405C2F #342F5C #5C2F57
monochromatic
#0E140A #24331A #405C2F #5C8544 #79AB5A

Accessibility & contrast

On white

7.53
#405C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#405C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405C2F
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C2F#FFFFFF#000000##FFFFFF
##405C2F1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562B
Deuteranopia (green-blind)
#5B5432
Tritanopia (blue-blind)
#405951
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405c2f;
/* rgb */ color: rgb(64, 92, 47);
/* oklch */ color: oklch(44.0% 0.077 134.7);
Tailwind
colors: {
  custom: {
    50: '#768a68',
    500: '#405c2f',
    950: '#000000',
  },
}
SCSS
$custom: #405c2f;
$custom-light: #768a68;
$custom-dark: #000000;
JSON
{
  "hex": "#405c2f",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 47
  },
  "hsl": {
    "h": 97.333,
    "s": 32.374,
    "l": 27.255
  },
  "oklch": {
    "l": 0.4405,
    "c": 0.07693,
    "h": 134.7
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#405C2F
secondary
#7A598E
accent
#5FC9A1
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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