#405E18#405E18

#405E18 is a dark, moderate yellow-green. Relative luminance 0.092; OKLCH L 44.3% C 0.103 H 129.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#405E18
RGBrgb(64, 94, 24)
HSLhsl(86, 59%, 23%)
HSVhsv(86, 74%, 37%)
CMYKcmyk(31.9%, 0%, 74.5%, 63.1%)
CIE-LABlab(36.29, -23.24, 34.86)
CIE-LCHlch(36.29, 41.90, 123.69°)
OKLaboklab(44.29% -0.0659 0.0788)
OKLCHoklch(44.29% 0.103 129.9)
XYZxyz(6.2819, 9.1612, 2.3013)
Luminance0.0916 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E18 #36185E
analogous
#5E5918 #405E18 #1D5E18
triadic
#405E18 #18405E #5E1840
tetradic
#405E18 #185E59 #36185E #5E181D
square
#405E18 #185E59 #36185E #5E181D
split-complementary
#405E18 #181D5E #59185E
monochromatic
#111806 #1F2D0C #405E18 #618F24 #82C031

Accessibility & contrast

On white

7.41
#405E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#405E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405E18
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E18#FFFFFF#000000##FFFFFF
##405E181.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570D
Deuteranopia (green-blind)
#5E551E
Tritanopia (blue-blind)
#425A50
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405e18;
/* rgb */ color: rgb(64, 94, 24);
/* oklch */ color: oklch(44.3% 0.103 129.9);
Tailwind
colors: {
  custom: {
    50: '#788c5a',
    500: '#405e18',
    950: '#000000',
  },
}
SCSS
$custom: #405e18;
$custom-light: #788c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#405e18",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 24
  },
  "hsl": {
    "h": 85.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.10272,
    "h": 129.9
  },
  "luminance": 0.09161
}

Semantic roles & 50–950 ramp

primary
#405E18
secondary
#633D94
accent
#45E389
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405E18

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

Preview Lab → · Contrast checker → · Palette generator →

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