#406E1F#406E1F

#406E1F is a mid, vivid yellow-green. Relative luminance 0.123; OKLCH L 48.8% C 0.120 H 134.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#406E1F
RGBrgb(64, 110, 31)
HSLhsl(95, 56%, 28%)
HSVhsv(95, 72%, 43%)
CMYKcmyk(41.8%, 0%, 71.8%, 56.9%)
CIE-LABlab(41.75, -30.38, 37.47)
CIE-LCHlch(41.75, 48.24, 129.04°)
OKLaboklab(48.77% -0.0848 0.0853)
OKLCHoklch(48.77% 0.12 134.8)
XYZxyz(7.9374, 12.3404, 3.2598)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E1F #4D1F6E
analogous
#676E1F #406E1F #1F6E26
triadic
#406E1F #1F406E #6E1F40
tetradic
#406E1F #1F676E #4D1F6E #6E261F
square
#406E1F #1F676E #4D1F6E #6E261F
split-complementary
#406E1F #261F6E #6E1F67
monochromatic
#0E1807 #243E12 #406E1F #5C9E2C #78C93F

Accessibility & contrast

On white

6.06
#406E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#406E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406E1F
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406E1F#FFFFFF#000000##FFFFFF
##406E1F1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726513
Deuteranopia (green-blind)
#6C6126
Tritanopia (blue-blind)
#3F6A5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406e1f;
/* rgb */ color: rgb(64, 110, 31);
/* oklch */ color: oklch(48.8% 0.120 134.8);
Tailwind
colors: {
  custom: {
    50: '#79985f',
    500: '#406e1f',
    950: '#000000',
  },
}
SCSS
$custom: #406e1f;
$custom-light: #79985f;
$custom-dark: #000000;
JSON
{
  "hex": "#406e1f",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 31
  },
  "hsl": {
    "h": 94.937,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.48765,
    "c": 0.12026,
    "h": 134.8
  },
  "luminance": 0.12341
}

Semantic roles & 50–950 ramp

primary
#406E1F
secondary
#7C47A2
accent
#48DFA0
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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