#405F18#405F18

#405F18 is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.6% C 0.104 H 130.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#405F18
RGBrgb(64, 95, 24)
HSLhsl(86, 60%, 23%)
HSVhsv(86, 75%, 37%)
CMYKcmyk(32.6%, 0%, 74.7%, 62.7%)
CIE-LABlab(36.63, -23.75, 35.21)
CIE-LCHlch(36.63, 42.47, 124.00°)
OKLaboklab(44.57% -0.0673 0.0795)
OKLCHoklch(44.57% 0.104 130.2)
XYZxyz(6.3714, 9.3402, 2.3311)
Luminance0.0934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F18 #37185F
analogous
#5F5A18 #405F18 #1C5F18
triadic
#405F18 #18405F #5F1840
tetradic
#405F18 #185F5A #37185F #5F181C
square
#405F18 #185F5A #37185F #5F181C
split-complementary
#405F18 #181C5F #5A185F
monochromatic
#101806 #1F2E0C #405F18 #619024 #82C131

Accessibility & contrast

On white

7.32
#405F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#405F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F18
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F18#FFFFFF#000000##FFFFFF
##405F181.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#64580D
Deuteranopia (green-blind)
#5F551E
Tritanopia (blue-blind)
#425B51
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405f18;
/* rgb */ color: rgb(64, 95, 24);
/* oklch */ color: oklch(44.6% 0.104 130.2);
Tailwind
colors: {
  custom: {
    50: '#788c5a',
    500: '#405f18',
    950: '#000000',
  },
}
SCSS
$custom: #405f18;
$custom-light: #788c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#405f18",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 86.197,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.44568,
    "c": 0.10415,
    "h": 130.2
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

primary
#405F18
secondary
#643D95
accent
#45E38A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405F18

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

Preview Lab → · Contrast checker → · Palette generator →

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