#405916#405916

#405916 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.9% C 0.097 H 127.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#405916
RGBrgb(64, 89, 22)
HSLhsl(82, 60%, 22%)
HSVhsv(82, 75%, 35%)
CMYKcmyk(28.1%, 0%, 75.3%, 65.1%)
CIE-LABlab(34.58, -20.83, 33.99)
CIE-LCHlch(34.58, 39.87, 121.51°)
OKLaboklab(42.9% -0.0595 0.0766)
OKLCHoklch(42.9% 0.097 127.8)
XYZxyz(5.8315, 8.2925, 2.0523)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405916 #2F1659
analogous
#595116 #405916 #1F5916
triadic
#405916 #164059 #591640
tetradic
#405916 #165951 #2F1659 #59161F
square
#405916 #165951 #2F1659 #59161F
split-complementary
#405916 #161F59 #511659
monochromatic
#121906 #1D280A #405916 #638A22 #87BB2E

Accessibility & contrast

On white

7.90
#405916 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#405916 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405916
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405916#FFFFFF#000000##FFFFFF
##4059161.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E520B
Deuteranopia (green-blind)
#5A511C
Tritanopia (blue-blind)
#42554C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405916;
/* rgb */ color: rgb(64, 89, 22);
/* oklch */ color: oklch(42.9% 0.097 127.8);
Tailwind
colors: {
  custom: {
    50: '#778858',
    500: '#405916',
    950: '#000000',
  },
}
SCSS
$custom: #405916;
$custom-light: #778858;
$custom-dark: #000000;
JSON
{
  "hex": "#405916",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 22
  },
  "hsl": {
    "h": 82.388,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42901,
    "c": 0.09701,
    "h": 127.8
  },
  "luminance": 0.08293
}

Semantic roles & 50–950 ramp

primary
#405916
secondary
#5B3B90
accent
#44E480
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405916

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

Preview Lab → · Contrast checker → · Palette generator →

#405916 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva