#405E1F#405E1F

#405E1F is a dark, moderate yellow-green. Relative luminance 0.092; OKLCH L 44.4% C 0.097 H 131.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#405E1F
RGBrgb(64, 94, 31)
HSLhsl(89, 50%, 25%)
HSVhsv(89, 67%, 37%)
CMYKcmyk(31.9%, 0%, 67%, 63.1%)
CIE-LABlab(36.36, -22.63, 31.69)
CIE-LCHlch(36.36, 38.94, 125.53°)
OKLaboklab(44.36% -0.0636 0.0731)
OKLCHoklch(44.36% 0.097 131)
XYZxyz(6.3643, 9.1941, 2.7354)
Luminance0.0919 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E1F #3D1F5E
analogous
#5E5D1F #405E1F #215E1F
triadic
#405E1F #1F405E #5E1F40
tetradic
#405E1F #1F5E5D #3D1F5E #5E1F21
square
#405E1F #1F5E5D #3D1F5E #5E1F21
split-complementary
#405E1F #1F215E #5D1F5E
monochromatic
#101708 #213010 #405E1F #5F8C2E #7FBA3D

Accessibility & contrast

On white

7.40
#405E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#405E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405E1F
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E1F#FFFFFF#000000##FFFFFF
##405E1F1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625717
Deuteranopia (green-blind)
#5E5524
Tritanopia (blue-blind)
#415A51
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405e1f;
/* rgb */ color: rgb(64, 94, 31);
/* oklch */ color: oklch(44.4% 0.097 131.0);
Tailwind
colors: {
  custom: {
    50: '#778c5e',
    500: '#405e1f',
    950: '#000000',
  },
}
SCSS
$custom: #405e1f;
$custom-light: #778c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#405e1f",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 31
  },
  "hsl": {
    "h": 88.571,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.44364,
    "c": 0.09692,
    "h": 131
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#405E1F
secondary
#6B4693
accent
#4EDA91
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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