#407A1D#407A1D

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

Color values

HEX#407A1D
RGBrgb(64, 122, 29)
HSLhsl(97, 62%, 30%)
HSVhsv(97, 76%, 48%)
CMYKcmyk(47.5%, 0%, 76.2%, 52.2%)
CIE-LABlab(45.77, -35.87, 42.38)
CIE-LCHlch(45.77, 55.53, 130.24°)
OKLaboklab(52.05% -0.0998 0.0953)
OKLCHoklch(52.05% 0.138 136.3)
XYZxyz(9.2954, 15.0972, 3.5864)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A1D #571D7A
analogous
#6F7A1D #407A1D #1D7A28
triadic
#407A1D #1D407A #7A1D40
tetradic
#407A1D #1D6F7A #571D7A #7A281D
square
#407A1D #1D6F7A #571D7A #7A281D
split-complementary
#407A1D #281D7A #7A1D6F
monochromatic
#0D1906 #264911 #407A1D #5AAB29 #77D240

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407A1D#FFFFFF#000000##FFFFFF
##407A1D1.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)
#7E6F0B
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#3D7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a1d;
/* rgb */ color: rgb(64, 122, 29);
/* oklch */ color: oklch(52.0% 0.138 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba160',
    500: '#407a1d',
    950: '#000000',
  },
}
SCSS
$custom: #407a1d;
$custom-light: #7ba160;
$custom-dark: #000000;
JSON
{
  "hex": "#407a1d",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 29
  },
  "hsl": {
    "h": 97.419,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5205,
    "c": 0.13797,
    "h": 136.3
  },
  "luminance": 0.15098
}

Semantic roles & 50–950 ramp

primary
#407A1D
secondary
#8645AE
accent
#43E5A8
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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