#405B18#405B18

#405B18 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.5% C 0.098 H 128.9°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#405B18
RGBrgb(64, 91, 24)
HSLhsl(84, 58%, 23%)
HSVhsv(84, 74%, 36%)
CMYKcmyk(29.7%, 0%, 73.6%, 64.3%)
CIE-LABlab(35.28, -21.71, 33.82)
CIE-LCHlch(35.28, 40.19, 122.70°)
OKLaboklab(43.47% -0.0617 0.0766)
OKLCHoklch(43.47% 0.098 128.9)
XYZxyz(6.0203, 8.6380, 2.2141)
Luminance0.0864 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B18 #33185B
analogous
#5B5418 #405B18 #1F5B18
triadic
#405B18 #18405B #5B1840
tetradic
#405B18 #185B54 #33185B #5B181F
square
#405B18 #185B54 #33185B #5B181F
split-complementary
#405B18 #181F5B #54185B
monochromatic
#111806 #1E2B0B #405B18 #628B25 #84BC32

Accessibility & contrast

On white

7.70
#405B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#405B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B18
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B18#FFFFFF#000000##FFFFFF
##405B181.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60540E
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#42574E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b18;
/* rgb */ color: rgb(64, 91, 24);
/* oklch */ color: oklch(43.5% 0.098 128.9);
Tailwind
colors: {
  custom: {
    50: '#778959',
    500: '#405b18',
    950: '#000000',
  },
}
SCSS
$custom: #405b18;
$custom-light: #778959;
$custom-dark: #000000;
JSON
{
  "hex": "#405b18",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 84.179,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.43468,
    "c": 0.09837,
    "h": 128.9
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#405B18
secondary
#5F3D92
accent
#46E185
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405B18

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

Preview Lab → · Contrast checker → · Palette generator →

#405B18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva