#407E1F#407E1F

#407E1F is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.2% C 0.142 H 137.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#407E1F
RGBrgb(64, 126, 31)
HSLhsl(99, 61%, 31%)
HSVhsv(99, 75%, 49%)
CMYKcmyk(49.2%, 0%, 75.4%, 50.6%)
CIE-LABlab(47.12, -37.43, 42.97)
CIE-LCHlch(47.12, 56.98, 131.06°)
OKLaboklab(53.16% -0.1038 0.0968)
OKLCHoklch(53.16% 0.142 137)
XYZxyz(9.8222, 16.1100, 3.8880)
Luminance0.1611 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E1F #5D1F7E
analogous
#6F7E1F #407E1F #1F7E2D
triadic
#407E1F #1F407E #7E1F40
tetradic
#407E1F #1F6F7E #5D1F7E #7E2D1F
square
#407E1F #1F6F7E #5D1F7E #7E2D1F
split-complementary
#407E1F #2D1F7E #7E1F6F
monochromatic
#0E1C07 #274D13 #407E1F #59AF2B #76D146

Accessibility & contrast

On white

4.97
#407E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#407E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E1F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E1F#FFFFFF#000000##FFFFFF
##407E1F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#7A6E28
Tritanopia (blue-blind)
#3C796C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e1f;
/* rgb */ color: rgb(64, 126, 31);
/* oklch */ color: oklch(53.2% 0.142 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ba461',
    500: '#407e1f',
    950: '#000000',
  },
}
SCSS
$custom: #407e1f;
$custom-light: #7ba461;
$custom-dark: #000000;
JSON
{
  "hex": "#407e1f",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 99.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53164,
    "c": 0.14196,
    "h": 137
  },
  "luminance": 0.16111
}

Semantic roles & 50–950 ramp

primary
#407E1F
secondary
#8C48B1
accent
#44E4AC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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