#407C1E#407C1E

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

Color values

HEX#407C1E
RGBrgb(64, 124, 30)
HSLhsl(98, 61%, 30%)
HSVhsv(98, 76%, 49%)
CMYKcmyk(48.4%, 0%, 75.8%, 51.4%)
CIE-LABlab(46.44, -36.65, 42.67)
CIE-LCHlch(46.44, 56.26, 130.66°)
OKLaboklab(52.61% -0.1018 0.0961)
OKLCHoklch(52.61% 0.14 136.7)
XYZxyz(9.5561, 15.5984, 3.7353)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C1E #5A1E7C
analogous
#6F7C1E #407C1E #1E7C2B
triadic
#407C1E #1E407C #7C1E40
tetradic
#407C1E #1E6F7C #5A1E7C #7C2B1E
square
#407C1E #1E6F7C #5A1E7C #7C2B1E
split-complementary
#407C1E #2B1E7C #7C1E6F
monochromatic
#0D1906 #274B12 #407C1E #59AD2A #76D143

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407C1E#FFFFFF#000000##FFFFFF
##407C1E1.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)
#80710C
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c1e;
/* rgb */ color: rgb(64, 124, 30);
/* oklch */ color: oklch(52.6% 0.140 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ba261',
    500: '#407c1e',
    950: '#000000',
  },
}
SCSS
$custom: #407c1e;
$custom-light: #7ba261;
$custom-dark: #000000;
JSON
{
  "hex": "#407c1e",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 30
  },
  "hsl": {
    "h": 98.298,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52608,
    "c": 0.13997,
    "h": 136.7
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#407C1E
secondary
#8946AF
accent
#44E4AA
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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