#406A18#406A18

#406A18 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.6% C 0.120 H 133.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#406A18
RGBrgb(64, 106, 24)
HSLhsl(91, 63%, 25%)
HSVhsv(91, 77%, 42%)
CMYKcmyk(39.6%, 0%, 77.4%, 58.4%)
CIE-LABlab(40.35, -29.07, 38.94)
CIE-LCHlch(40.35, 48.60, 126.74°)
OKLaboklab(47.6% -0.0818 0.0873)
OKLCHoklch(47.6% 0.12 133.1)
XYZxyz(7.4331, 11.4637, 2.6850)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A18 #42186A
analogous
#696A18 #406A18 #186A19
triadic
#406A18 #18406A #6A1840
tetradic
#406A18 #18696A #42186A #6A1918
square
#406A18 #18696A #42186A #6A1918
split-complementary
#406A18 #19186A #6A1869
monochromatic
#0F1906 #22380D #406A18 #5E9C23 #7CCE2F

Accessibility & contrast

On white

6.38
#406A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#406A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406A18
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406A18#FFFFFF#000000##FFFFFF
##406A181.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6108
Deuteranopia (green-blind)
#695E20
Tritanopia (blue-blind)
#40655A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a18;
/* rgb */ color: rgb(64, 106, 24);
/* oklch */ color: oklch(47.6% 0.120 133.1);
Tailwind
colors: {
  custom: {
    50: '#79955b',
    500: '#406a18',
    950: '#000000',
  },
}
SCSS
$custom: #406a18;
$custom-light: #79955b;
$custom-dark: #000000;
JSON
{
  "hex": "#406a18",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 24
  },
  "hsl": {
    "h": 90.732,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.47602,
    "c": 0.11962,
    "h": 133.1
  },
  "luminance": 0.11464
}

Semantic roles & 50–950 ramp

primary
#406A18
secondary
#703EA0
accent
#42E696
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406A18

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

Preview Lab → · Contrast checker → · Palette generator →

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