#407C1D#407C1D

#407C1D is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.141 H 136.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407C1D
RGBrgb(64, 124, 29)
HSLhsl(98, 62%, 30%)
HSVhsv(98, 77%, 49%)
CMYKcmyk(48.4%, 0%, 76.6%, 51.4%)
CIE-LABlab(46.44, -36.73, 43.05)
CIE-LCHlch(46.44, 56.59, 130.47°)
OKLaboklab(52.6% -0.1021 0.0967)
OKLCHoklch(52.6% 0.141 136.6)
XYZxyz(9.5435, 15.5934, 3.6691)
Luminance0.1559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C1D #591D7C
analogous
#6F7C1D #407C1D #1D7C2A
triadic
#407C1D #1D407C #7C1D40
tetradic
#407C1D #1D6F7C #591D7C #7C2A1D
square
#407C1D #1D6F7C #591D7C #7C2A1D
split-complementary
#407C1D #2A1D7C #7C1D6F
monochromatic
#0D1906 #264A11 #407C1D #5AAE29 #77D341

Accessibility & contrast

On white

5.10
#407C1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#407C1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C1D
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C1D#FFFFFF#000000##FFFFFF
##407C1D1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710A
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c1d;
/* rgb */ color: rgb(64, 124, 29);
/* oklch */ color: oklch(52.6% 0.141 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ba260',
    500: '#407c1d',
    950: '#000000',
  },
}
SCSS
$custom: #407c1d;
$custom-light: #7ba260;
$custom-dark: #000000;
JSON
{
  "hex": "#407c1d",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 97.895,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.526,
    "c": 0.1406,
    "h": 136.6
  },
  "luminance": 0.15594
}

Semantic roles & 50–950 ramp

primary
#407C1D
secondary
#8845B0
accent
#43E5A9
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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