#405D18#405D18

#405D18 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 44.0% C 0.101 H 129.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#405D18
RGBrgb(64, 93, 24)
HSLhsl(85, 59%, 23%)
HSVhsv(85, 74%, 36%)
CMYKcmyk(31.2%, 0%, 74.2%, 63.5%)
CIE-LABlab(35.95, -22.74, 34.52)
CIE-LCHlch(35.95, 41.33, 123.37°)
OKLaboklab(44.02% -0.0645 0.0781)
OKLCHoklch(44.02% 0.101 129.6)
XYZxyz(6.1935, 8.9845, 2.2718)
Luminance0.0898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D18 #35185D
analogous
#5D5718 #405D18 #1E5D18
triadic
#405D18 #18405D #5D1840
tetradic
#405D18 #185D57 #35185D #5D181E
square
#405D18 #185D57 #35185D #5D181E
split-complementary
#405D18 #181E5D #57185D
monochromatic
#111806 #1F2C0B #405D18 #618E25 #83BE31

Accessibility & contrast

On white

7.51
#405D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#405D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D18
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D18#FFFFFF#000000##FFFFFF
##405D181.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560D
Deuteranopia (green-blind)
#5E541E
Tritanopia (blue-blind)
#42594F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d18;
/* rgb */ color: rgb(64, 93, 24);
/* oklch */ color: oklch(44.0% 0.101 129.6);
Tailwind
colors: {
  custom: {
    50: '#788b59',
    500: '#405d18',
    950: '#000000',
  },
}
SCSS
$custom: #405d18;
$custom-light: #788b59;
$custom-dark: #000000;
JSON
{
  "hex": "#405d18",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 24
  },
  "hsl": {
    "h": 85.217,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44018,
    "c": 0.10127,
    "h": 129.6
  },
  "luminance": 0.08985
}

Semantic roles & 50–950 ramp

primary
#405D18
secondary
#623D93
accent
#46E287
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405D18

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

Preview Lab → · Contrast checker → · Palette generator →

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