#406A17#406A17

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

Color values

HEX#406A17
RGBrgb(64, 106, 23)
HSLhsl(90, 64%, 25%)
HSVhsv(90, 78%, 42%)
CMYKcmyk(39.6%, 0%, 78.3%, 58.4%)
CIE-LABlab(40.34, -29.14, 39.32)
CIE-LCHlch(40.34, 48.94, 126.54°)
OKLaboklab(47.59% -0.082 0.088)
OKLCHoklch(47.59% 0.12 133)
XYZxyz(7.4229, 11.4596, 2.6313)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A17 #41176A
analogous
#6A6A17 #406A17 #176A17
triadic
#406A17 #17406A #6A1740
tetradic
#406A17 #176A6A #41176A #6A1717
square
#406A17 #176A6A #41176A #6A1717
split-complementary
#406A17 #17176A #6A176A
monochromatic
#0F1905 #22380C #406A17 #5E9C22 #7DCF2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406A17#FFFFFF#000000##FFFFFF
##406A171.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)
#6F6106
Deuteranopia (green-blind)
#695E1F
Tritanopia (blue-blind)
#40655A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a17;
/* rgb */ color: rgb(64, 106, 23);
/* oklch */ color: oklch(47.6% 0.120 133.0);
Tailwind
colors: {
  custom: {
    50: '#79955b',
    500: '#406a17',
    950: '#000000',
  },
}
SCSS
$custom: #406a17;
$custom-light: #79955b;
$custom-dark: #000000;
JSON
{
  "hex": "#406a17",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 90.361,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47594,
    "c": 0.12027,
    "h": 133
  },
  "luminance": 0.1146
}

Semantic roles & 50–950 ramp

primary
#406A17
secondary
#6F3DA0
accent
#40E795
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406A17

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

Preview Lab → · Contrast checker → · Palette generator →

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