#405C18#405C18

#405C18 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.7% C 0.100 H 129.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#405C18
RGBrgb(64, 92, 24)
HSLhsl(85, 59%, 23%)
HSVhsv(85, 74%, 36%)
CMYKcmyk(30.4%, 0%, 73.9%, 63.9%)
CIE-LABlab(35.62, -22.23, 34.17)
CIE-LCHlch(35.62, 40.76, 123.05°)
OKLaboklab(43.74% -0.0631 0.0773)
OKLCHoklch(43.74% 0.1 129.2)
XYZxyz(6.1063, 8.8101, 2.2428)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C18 #34185C
analogous
#5C5618 #405C18 #1E5C18
triadic
#405C18 #18405C #5C1840
tetradic
#405C18 #185C56 #34185C #5C181E
square
#405C18 #185C56 #34185C #5C181E
split-complementary
#405C18 #181E5C #56185C
monochromatic
#111806 #1E2B0B #405C18 #628D25 #84BD31

Accessibility & contrast

On white

7.60
#405C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#405C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405C18
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C18#FFFFFF#000000##FFFFFF
##405C181.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550E
Deuteranopia (green-blind)
#5D531E
Tritanopia (blue-blind)
#42584E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405c18;
/* rgb */ color: rgb(64, 92, 24);
/* oklch */ color: oklch(43.7% 0.100 129.2);
Tailwind
colors: {
  custom: {
    50: '#778a59',
    500: '#405c18',
    950: '#000000',
  },
}
SCSS
$custom: #405c18;
$custom-light: #778a59;
$custom-dark: #000000;
JSON
{
  "hex": "#405c18",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 24
  },
  "hsl": {
    "h": 84.706,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43743,
    "c": 0.09983,
    "h": 129.2
  },
  "luminance": 0.0881
}

Semantic roles & 50–950 ramp

primary
#405C18
secondary
#603D93
accent
#46E286
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405C18

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

Preview Lab → · Contrast checker → · Palette generator →

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