#407C18#407C18

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

Color values

HEX#407C18
RGBrgb(64, 124, 24)
HSLhsl(96, 68%, 29%)
HSVhsv(96, 81%, 49%)
CMYKcmyk(48.4%, 0%, 80.6%, 51.4%)
CIE-LABlab(46.41, -37.06, 44.81)
CIE-LCHlch(46.41, 58.15, 129.59°)
OKLaboklab(52.57% -0.1033 0.0996)
OKLCHoklch(52.57% 0.144 136.1)
XYZxyz(9.4866, 15.5706, 3.3695)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C18 #54187C
analogous
#727C18 #407C18 #187C22
triadic
#407C18 #18407C #7C1840
tetradic
#407C18 #18727C #54187C #7C2218
square
#407C18 #18727C #54187C #7C2218
split-complementary
#407C18 #22187C #7C1872
monochromatic
#0D1A05 #26490E #407C18 #5AAF22 #77D836

Accessibility & contrast

On white

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

On black

4.11
#407C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407C18#FFFFFF#000000##FFFFFF
##407C181.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#3D7769
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c18;
/* rgb */ color: rgb(64, 124, 24);
/* oklch */ color: oklch(52.6% 0.143 136.1);
Tailwind
colors: {
  custom: {
    50: '#7ba25e',
    500: '#407c18',
    950: '#000000',
  },
}
SCSS
$custom: #407c18;
$custom-light: #7ba25e;
$custom-dark: #000000;
JSON
{
  "hex": "#407c18",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 96,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52565,
    "c": 0.1435,
    "h": 136.1
  },
  "luminance": 0.15571
}

Semantic roles & 50–950 ramp

primary
#407C18
secondary
#833FB1
accent
#3DEAA5
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C18

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

Preview Lab → · Contrast checker → · Palette generator →

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