#406A16#406A16

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

Color values

HEX#406A16
RGBrgb(64, 106, 22)
HSLhsl(90, 66%, 25%)
HSVhsv(90, 79%, 42%)
CMYKcmyk(39.6%, 0%, 79.2%, 58.4%)
CIE-LABlab(40.34, -29.21, 39.69)
CIE-LCHlch(40.34, 49.28, 126.35°)
OKLaboklab(47.59% -0.0823 0.0886)
OKLCHoklch(47.59% 0.121 132.9)
XYZxyz(7.4131, 11.4556, 2.5795)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A16 #40166A
analogous
#6A6A16 #406A16 #166A16
triadic
#406A16 #16406A #6A1640
tetradic
#406A16 #166A6A #40166A #6A1616
square
#406A16 #166A6A #40166A #6A1616
split-complementary
#406A16 #16166A #6A166A
monochromatic
#0F1905 #21370B #406A16 #5F9D21 #7DCF2B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #406a16;
/* rgb */ color: rgb(64, 106, 22);
/* oklch */ color: oklch(47.6% 0.121 132.9);
Tailwind
colors: {
  custom: {
    50: '#79955a',
    500: '#406a16',
    950: '#000000',
  },
}
SCSS
$custom: #406a16;
$custom-light: #79955a;
$custom-dark: #000000;
JSON
{
  "hex": "#406a16",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 22
  },
  "hsl": {
    "h": 90,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47587,
    "c": 0.12088,
    "h": 132.9
  },
  "luminance": 0.11456
}

Semantic roles & 50–950 ramp

primary
#406A16
secondary
#6E3BA0
accent
#3FE994
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406A16

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

Preview Lab → · Contrast checker → · Palette generator →

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