#407E18#407E18

#407E18 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.146 H 136.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407E18
RGBrgb(64, 126, 24)
HSLhsl(96, 68%, 29%)
HSVhsv(96, 81%, 49%)
CMYKcmyk(49.2%, 0%, 81%, 50.6%)
CIE-LABlab(47.08, -37.90, 45.44)
CIE-LCHlch(47.08, 59.17, 129.83°)
OKLaboklab(53.12% -0.1056 0.1009)
OKLCHoklch(53.12% 0.146 136.3)
XYZxyz(9.7398, 16.0770, 3.4539)
Luminance0.1608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E18 #56187E
analogous
#737E18 #407E18 #187E23
triadic
#407E18 #18407E #7E1840
tetradic
#407E18 #18737E #56187E #7E2318
square
#407E18 #18737E #56187E #7E2318
split-complementary
#407E18 #23187E #7E1873
monochromatic
#0D1A05 #264B0E #407E18 #5AB122 #77D937

Accessibility & contrast

On white

4.98
#407E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#407E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E18
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E18#FFFFFF#000000##FFFFFF
##407E181.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7A6E23
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e18;
/* rgb */ color: rgb(64, 126, 24);
/* oklch */ color: oklch(53.1% 0.146 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba45e',
    500: '#407e18',
    950: '#000000',
  },
}
SCSS
$custom: #407e18;
$custom-light: #7ba45e;
$custom-dark: #000000;
JSON
{
  "hex": "#407e18",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 96.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53115,
    "c": 0.14604,
    "h": 136.3
  },
  "luminance": 0.16078
}

Semantic roles & 50–950 ramp

primary
#407E18
secondary
#853FB2
accent
#3DEBA7
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E18

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

Preview Lab → · Contrast checker → · Palette generator →

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