#407A18#407A18

#407A18 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.141 H 135.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#407A18
RGBrgb(64, 122, 24)
HSLhsl(96, 67%, 29%)
HSVhsv(96, 80%, 48%)
CMYKcmyk(47.5%, 0%, 80.3%, 52.2%)
CIE-LABlab(45.74, -36.21, 44.17)
CIE-LCHlch(45.74, 57.11, 129.35°)
OKLaboklab(52.02% -0.101 0.0983)
OKLCHoklch(52.02% 0.141 135.8)
XYZxyz(9.2385, 15.0744, 3.2868)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A18 #52187A
analogous
#717A18 #407A18 #187A21
triadic
#407A18 #18407A #7A1840
tetradic
#407A18 #18717A #52187A #7A2118
square
#407A18 #18717A #52187A #7A2118
split-complementary
#407A18 #21187A #7A1871
monochromatic
#0D1A05 #25470E #407A18 #5BAD22 #77D735

Accessibility & contrast

On white

5.23
#407A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#407A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A18
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A18#FFFFFF#000000##FFFFFF
##407A181.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a18;
/* rgb */ color: rgb(64, 122, 24);
/* oklch */ color: oklch(52.0% 0.141 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba15d',
    500: '#407a18',
    950: '#000000',
  },
}
SCSS
$custom: #407a18;
$custom-light: #7ba15d;
$custom-dark: #000000;
JSON
{
  "hex": "#407a18",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 95.51,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.14093,
    "h": 135.8
  },
  "luminance": 0.15075
}

Semantic roles & 50–950 ramp

primary
#407A18
secondary
#813FAF
accent
#3EEAA4
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A18

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

Preview Lab → · Contrast checker → · Palette generator →

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