#405F2E#405F2E

#405F2E is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.8% C 0.083 H 135.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#405F2E
RGBrgb(64, 95, 46)
HSLhsl(98, 35%, 28%)
HSVhsv(98, 52%, 37%)
CMYKcmyk(32.6%, 0%, 51.6%, 62.7%)
CIE-LABlab(36.88, -21.38, 24.35)
CIE-LCHlch(36.88, 32.40, 131.28°)
OKLaboklab(44.85% -0.0589 0.0587)
OKLCHoklch(44.85% 0.083 135.1)
XYZxyz(6.6995, 9.4714, 4.0594)
Luminance0.0947 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F2E #4D2E5F
analogous
#595F2E #405F2E #2E5F34
triadic
#405F2E #2E405F #5F2E40
tetradic
#405F2E #2E595F #4D2E5F #5F342E
square
#405F2E #2E595F #4D2E5F #5F342E
split-complementary
#405F2E #342E5F #5F2E59
monochromatic
#0E150A #24361A #405F2E #5C8842 #78AF59

Accessibility & contrast

On white

7.26
#405F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#405F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F2E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F2E#FFFFFF#000000##FFFFFF
##405F2E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62582A
Deuteranopia (green-blind)
#5E5631
Tritanopia (blue-blind)
#405C54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #405f2e;
/* rgb */ color: rgb(64, 95, 46);
/* oklch */ color: oklch(44.8% 0.083 135.1);
Tailwind
colors: {
  custom: {
    50: '#768c68',
    500: '#405f2e',
    950: '#000000',
  },
}
SCSS
$custom: #405f2e;
$custom-light: #768c68;
$custom-dark: #000000;
JSON
{
  "hex": "#405f2e",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 46
  },
  "hsl": {
    "h": 97.959,
    "s": 34.752,
    "l": 27.647
  },
  "oklch": {
    "l": 0.44847,
    "c": 0.08313,
    "h": 135.1
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#405F2E
secondary
#7C5891
accent
#5DCBA2
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090C06
muted
#7B7D7A

Preview Lab

Preview with #405F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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