#407A1A#407A1A

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

Color values

HEX#407A1A
RGBrgb(64, 122, 26)
HSLhsl(96, 65%, 29%)
HSVhsv(96, 79%, 48%)
CMYKcmyk(47.5%, 0%, 78.7%, 52.2%)
CIE-LABlab(45.75, -36.08, 43.48)
CIE-LCHlch(45.75, 56.50, 129.69°)
OKLaboklab(52.03% -0.1005 0.0971)
OKLCHoklch(52.03% 0.14 136)
XYZxyz(9.2601, 15.0831, 3.4005)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A1A #541A7A
analogous
#707A1A #407A1A #1A7A24
triadic
#407A1A #1A407A #7A1A40
tetradic
#407A1A #1A707A #541A7A #7A241A
square
#407A1A #1A707A #541A7A #7A241A
split-complementary
#407A1A #241A7A #7A1A70
monochromatic
#0D1905 #26480F #407A1A #5AAC25 #77D539

Accessibility & contrast

On white

5.23
#407A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407A1A
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A1A#FFFFFF#000000##FFFFFF
##407A1A1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F04
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a1a;
/* rgb */ color: rgb(64, 122, 26);
/* oklch */ color: oklch(52.0% 0.140 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ba15e',
    500: '#407a1a',
    950: '#000000',
  },
}
SCSS
$custom: #407a1a;
$custom-light: #7ba15e;
$custom-dark: #000000;
JSON
{
  "hex": "#407a1a",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 96.25,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52028,
    "c": 0.1398,
    "h": 136
  },
  "luminance": 0.15084
}

Semantic roles & 50–950 ramp

primary
#407A1A
secondary
#8341AE
accent
#40E8A5
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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