#406A1F#406A1F

#406A1F is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.7% C 0.115 H 134.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#406A1F
RGBrgb(64, 106, 31)
HSLhsl(94, 55%, 27%)
HSVhsv(94, 71%, 42%)
CMYKcmyk(39.6%, 0%, 70.8%, 58.4%)
CIE-LABlab(40.40, -28.52, 36.05)
CIE-LCHlch(40.40, 45.97, 128.34°)
OKLaboklab(47.66% -0.0797 0.0823)
OKLCHoklch(47.66% 0.115 134.1)
XYZxyz(7.5156, 11.4966, 3.1191)
Luminance0.1150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A1F #491F6A
analogous
#666A1F #406A1F #1F6A24
triadic
#406A1F #1F406A #6A1F40
tetradic
#406A1F #1F666A #491F6A #6A241F
square
#406A1F #1F666A #491F6A #6A241F
split-complementary
#406A1F #241F6A #6A1F66
monochromatic
#0E1807 #233B11 #406A1F #5D992D #79C63D

Accessibility & contrast

On white

6.36
#406A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#406A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406A1F
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406A1F#FFFFFF#000000##FFFFFF
##406A1F1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6115
Deuteranopia (green-blind)
#685E25
Tritanopia (blue-blind)
#40665B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a1f;
/* rgb */ color: rgb(64, 106, 31);
/* oklch */ color: oklch(47.7% 0.115 134.1);
Tailwind
colors: {
  custom: {
    50: '#78955f',
    500: '#406a1f',
    950: '#000000',
  },
}
SCSS
$custom: #406a1f;
$custom-light: #78955f;
$custom-dark: #000000;
JSON
{
  "hex": "#406a1f",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 93.6,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.47663,
    "c": 0.11457,
    "h": 134.1
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#406A1F
secondary
#78479E
accent
#4ADE9D
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#406A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva