#407A1E#407A1E

#407A1E is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.1% C 0.137 H 136.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#407A1E
RGBrgb(64, 122, 30)
HSLhsl(98, 61%, 30%)
HSVhsv(98, 75%, 48%)
CMYKcmyk(47.5%, 0%, 75.4%, 52.2%)
CIE-LABlab(45.77, -35.80, 42.00)
CIE-LCHlch(45.77, 55.19, 130.44°)
OKLaboklab(52.06% -0.0995 0.0947)
OKLCHoklch(52.06% 0.137 136.4)
XYZxyz(9.3080, 15.1022, 3.6526)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A1E #581E7A
analogous
#6E7A1E #407A1E #1E7A2A
triadic
#407A1E #1E407A #7A1E40
tetradic
#407A1E #1E6E7A #581E7A #7A2A1E
square
#407A1E #1E6E7A #581E7A #7A2A1E
split-complementary
#407A1E #2A1E7A #7A1E6E
monochromatic
#0D1906 #264912 #407A1E #5AAB2A #77D042

Accessibility & contrast

On white

5.22
#407A1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#407A1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A1E
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A1E#FFFFFF#000000##FFFFFF
##407A1E1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0D
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#3D7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a1e;
/* rgb */ color: rgb(64, 122, 30);
/* oklch */ color: oklch(52.1% 0.137 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ba160',
    500: '#407a1e',
    950: '#000000',
  },
}
SCSS
$custom: #407a1e;
$custom-light: #7ba160;
$custom-dark: #000000;
JSON
{
  "hex": "#407a1e",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 30
  },
  "hsl": {
    "h": 97.826,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52058,
    "c": 0.13733,
    "h": 136.4
  },
  "luminance": 0.15103
}

Semantic roles & 50–950 ramp

primary
#407A1E
secondary
#8746AE
accent
#44E4A9
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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