#405D1F#405D1F

#405D1F is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 44.1% C 0.095 H 130.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#405D1F
RGBrgb(64, 93, 31)
HSLhsl(88, 50%, 24%)
HSVhsv(88, 67%, 36%)
CMYKcmyk(31.2%, 0%, 66.7%, 63.5%)
CIE-LABlab(36.02, -22.12, 31.32)
CIE-LCHlch(36.02, 38.35, 125.23°)
OKLaboklab(44.09% -0.0622 0.0724)
OKLCHoklch(44.09% 0.095 130.7)
XYZxyz(6.2760, 9.0174, 2.7059)
Luminance0.0902 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D1F #3C1F5D
analogous
#5D5B1F #405D1F #215D1F
triadic
#405D1F #1F405D #5D1F40
tetradic
#405D1F #1F5D5B #3C1F5D #5D1F21
square
#405D1F #1F5D5B #3C1F5D #5D1F21
split-complementary
#405D1F #1F215D #5B1F5D
monochromatic
#101708 #202F10 #405D1F #608B2E #7FB93E

Accessibility & contrast

On white

7.49
#405D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#405D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D1F
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D1F#FFFFFF#000000##FFFFFF
##405D1F1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615618
Deuteranopia (green-blind)
#5D5424
Tritanopia (blue-blind)
#415950
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d1f;
/* rgb */ color: rgb(64, 93, 31);
/* oklch */ color: oklch(44.1% 0.095 130.7);
Tailwind
colors: {
  custom: {
    50: '#778b5e',
    500: '#405d1f',
    950: '#000000',
  },
}
SCSS
$custom: #405d1f;
$custom-light: #778b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#405d1f",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 31
  },
  "hsl": {
    "h": 88.065,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4409,
    "c": 0.0954,
    "h": 130.7
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#405D1F
secondary
#694692
accent
#4EDA8F
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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