#406D1F#406D1F

#406D1F is a mid, moderate yellow-green. Relative luminance 0.121; OKLCH L 48.5% C 0.119 H 134.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#406D1F
RGBrgb(64, 109, 31)
HSLhsl(95, 56%, 27%)
HSVhsv(95, 72%, 43%)
CMYKcmyk(41.3%, 0%, 71.6%, 57.3%)
CIE-LABlab(41.42, -29.92, 37.12)
CIE-LCHlch(41.42, 47.67, 128.87°)
OKLaboklab(48.49% -0.0835 0.0846)
OKLCHoklch(48.49% 0.119 134.6)
XYZxyz(7.8302, 12.1258, 3.2240)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406D1F #4C1F6D
analogous
#676D1F #406D1F #1F6D25
triadic
#406D1F #1F406D #6D1F40
tetradic
#406D1F #1F676D #4C1F6D #6D251F
square
#406D1F #1F676D #4C1F6D #6D251F
split-complementary
#406D1F #251F6D #6D1F67
monochromatic
#0E1807 #243D11 #406D1F #5C9D2D #79C83E

Accessibility & contrast

On white

6.13
#406D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#406D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406D1F
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406D1F#FFFFFF#000000##FFFFFF
##406D1F1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716414
Deuteranopia (green-blind)
#6B6026
Tritanopia (blue-blind)
#3F695D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406d1f;
/* rgb */ color: rgb(64, 109, 31);
/* oklch */ color: oklch(48.5% 0.119 134.6);
Tailwind
colors: {
  custom: {
    50: '#79975f',
    500: '#406d1f',
    950: '#000000',
  },
}
SCSS
$custom: #406d1f;
$custom-light: #79975f;
$custom-dark: #000000;
JSON
{
  "hex": "#406d1f",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 31
  },
  "hsl": {
    "h": 94.615,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.48489,
    "c": 0.11885,
    "h": 134.6
  },
  "luminance": 0.12126
}

Semantic roles & 50–950 ramp

primary
#406D1F
secondary
#7B47A1
accent
#49DF9F
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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