#407D18#407D18

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

Color values

HEX#407D18
RGBrgb(64, 125, 24)
HSLhsl(96, 68%, 29%)
HSVhsv(96, 81%, 49%)
CMYKcmyk(48.8%, 0%, 80.8%, 51%)
CIE-LABlab(46.74, -37.48, 45.12)
CIE-LCHlch(46.74, 58.66, 129.71°)
OKLaboklab(52.84% -0.1044 0.1003)
OKLCHoklch(52.84% 0.145 136.2)
XYZxyz(9.6126, 15.8225, 3.4115)
Luminance0.1582 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D18 #55187D
analogous
#737D18 #407D18 #187D23
triadic
#407D18 #18407D #7D1840
tetradic
#407D18 #18737D #55187D #7D2318
square
#407D18 #18737D #55187D #7D2318
split-complementary
#407D18 #23187D #7D1873
monochromatic
#0D1A05 #264A0E #407D18 #5AB022 #77D937

Accessibility & contrast

On white

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

On black

4.16
#407D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407D18#FFFFFF#000000##FFFFFF
##407D181.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407d18;
/* rgb */ color: rgb(64, 125, 24);
/* oklch */ color: oklch(52.8% 0.145 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ba35e',
    500: '#407d18',
    950: '#000000',
  },
}
SCSS
$custom: #407d18;
$custom-light: #7ba35e;
$custom-dark: #000000;
JSON
{
  "hex": "#407d18",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 96.238,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5284,
    "c": 0.14477,
    "h": 136.2
  },
  "luminance": 0.15823
}

Semantic roles & 50–950 ramp

primary
#407D18
secondary
#843FB2
accent
#3DEBA6
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D18

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

Preview Lab → · Contrast checker → · Palette generator →

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