#407E1A#407E1A

#407E1A is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.145 H 136.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407E1A
RGBrgb(64, 126, 26)
HSLhsl(97, 66%, 30%)
HSVhsv(97, 79%, 49%)
CMYKcmyk(49.2%, 0%, 79.4%, 50.6%)
CIE-LABlab(47.09, -37.77, 44.77)
CIE-LCHlch(47.09, 58.58, 130.16°)
OKLaboklab(53.13% -0.1051 0.0998)
OKLCHoklch(53.13% 0.145 136.5)
XYZxyz(9.7614, 16.0856, 3.5676)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E1A #581A7E
analogous
#727E1A #407E1A #1A7E26
triadic
#407E1A #1A407E #7E1A40
tetradic
#407E1A #1A727E #581A7E #7E261A
square
#407E1A #1A727E #581A7E #7E261A
split-complementary
#407E1A #261A7E #7E1A72
monochromatic
#0D1905 #264B10 #407E1A #5AB124 #77D73C

Accessibility & contrast

On white

4.98
#407E1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407E1A
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E1A#FFFFFF#000000##FFFFFF
##407E1A1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837302
Deuteranopia (green-blind)
#7A6E25
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e1a;
/* rgb */ color: rgb(64, 126, 26);
/* oklch */ color: oklch(53.1% 0.145 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ba45f',
    500: '#407e1a',
    950: '#000000',
  },
}
SCSS
$custom: #407e1a;
$custom-light: #7ba45f;
$custom-dark: #000000;
JSON
{
  "hex": "#407e1a",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 97.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53128,
    "c": 0.14496,
    "h": 136.5
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#407E1A
secondary
#8742B2
accent
#3FE9A8
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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