#405A2E#405A2E

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

Color values

HEX#405A2E
RGBrgb(64, 90, 46)
HSLhsl(95, 32%, 27%)
HSVhsv(95, 49%, 35%)
CMYKcmyk(28.9%, 0%, 48.9%, 64.7%)
CIE-LABlab(35.20, -18.74, 22.27)
CIE-LCHlch(35.20, 29.10, 130.07°)
OKLaboklab(43.49% -0.0516 0.054)
OKLCHoklch(43.49% 0.075 133.7)
XYZxyz(6.2635, 8.5994, 3.9141)
Luminance0.0860 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A2E #482E5A
analogous
#565A2E #405A2E #2E5A32
triadic
#405A2E #2E405A #5A2E40
tetradic
#405A2E #2E565A #482E5A #5A322E
square
#405A2E #2E565A #482E5A #5A322E
split-complementary
#405A2E #322E5A #5A2E56
monochromatic
#0E140A #233219 #405A2E #5D8343 #7AAA59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405A2E#FFFFFF#000000##FFFFFF
##405A2E1.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)
#5D542A
Deuteranopia (green-blind)
#595231
Tritanopia (blue-blind)
#405750
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405a2e;
/* rgb */ color: rgb(64, 90, 46);
/* oklch */ color: oklch(43.5% 0.075 133.7);
Tailwind
colors: {
  custom: {
    50: '#768867',
    500: '#405a2e',
    950: '#000000',
  },
}
SCSS
$custom: #405a2e;
$custom-light: #768867;
$custom-dark: #000000;
JSON
{
  "hex": "#405a2e",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 46
  },
  "hsl": {
    "h": 95.455,
    "s": 32.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.4349,
    "c": 0.0747,
    "h": 133.7
  },
  "luminance": 0.086
}

Semantic roles & 50–950 ramp

primary
#405A2E
secondary
#77588C
accent
#5FC99D
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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