#407D1A#407D1A

#407D1A is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.9% C 0.144 H 136.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#407D1A
RGBrgb(64, 125, 26)
HSLhsl(97, 66%, 30%)
HSVhsv(97, 79%, 49%)
CMYKcmyk(48.8%, 0%, 79.2%, 51%)
CIE-LABlab(46.75, -37.36, 44.45)
CIE-LCHlch(46.75, 58.06, 130.04°)
OKLaboklab(52.85% -0.104 0.0992)
OKLCHoklch(52.85% 0.144 136.4)
XYZxyz(9.6342, 15.8312, 3.5251)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D1A #571A7D
analogous
#727D1A #407D1A #1A7D26
triadic
#407D1A #1A407D #7D1A40
tetradic
#407D1A #1A727D #571A7D #7D261A
square
#407D1A #1A727D #571A7D #7D261A
split-complementary
#407D1A #261A7D #7D1A72
monochromatic
#0D1905 #264A0F #407D1A #5AB025 #77D63B

Accessibility & contrast

On white

5.04
#407D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#407D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D1A
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D1A#FFFFFF#000000##FFFFFF
##407D1A1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827203
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#3D786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d1a;
/* rgb */ color: rgb(64, 125, 26);
/* oklch */ color: oklch(52.9% 0.144 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ba35f',
    500: '#407d1a',
    950: '#000000',
  },
}
SCSS
$custom: #407d1a;
$custom-light: #7ba35f;
$custom-dark: #000000;
JSON
{
  "hex": "#407d1a",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 96.97,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52853,
    "c": 0.14368,
    "h": 136.4
  },
  "luminance": 0.15832
}

Semantic roles & 50–950 ramp

primary
#407D1A
secondary
#8642B1
accent
#3FE9A8
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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