#405A19#405A19

#405A19 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.2% C 0.096 H 128.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#405A19
RGBrgb(64, 90, 25)
HSLhsl(84, 57%, 23%)
HSVhsv(84, 72%, 35%)
CMYKcmyk(28.9%, 0%, 72.2%, 64.7%)
CIE-LABlab(34.95, -21.12, 33.03)
CIE-LCHlch(34.95, 39.20, 122.59°)
OKLaboklab(43.2% -0.06 0.0751)
OKLCHoklch(43.2% 0.096 128.6)
XYZxyz(5.9460, 8.4724, 2.2416)
Luminance0.0847 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A19 #33195A
analogous
#5A5419 #405A19 #1F5A19
triadic
#405A19 #19405A #5A1940
tetradic
#405A19 #195A54 #33195A #5A191F
square
#405A19 #195A54 #33195A #5A191F
split-complementary
#405A19 #191F5A #54195A
monochromatic
#111807 #1E2A0C #405A19 #628A26 #84BA34

Accessibility & contrast

On white

7.79
#405A19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#405A19 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A19
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A19#FFFFFF#000000##FFFFFF
##405A191.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5310
Deuteranopia (green-blind)
#5B521E
Tritanopia (blue-blind)
#42564D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a19;
/* rgb */ color: rgb(64, 90, 25);
/* oklch */ color: oklch(43.2% 0.096 128.6);
Tailwind
colors: {
  custom: {
    50: '#77885a',
    500: '#405a19',
    950: '#000000',
  },
}
SCSS
$custom: #405a19;
$custom-light: #77885a;
$custom-dark: #000000;
JSON
{
  "hex": "#405a19",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 25
  },
  "hsl": {
    "h": 84,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.43203,
    "c": 0.09611,
    "h": 128.6
  },
  "luminance": 0.08473
}

Semantic roles & 50–950 ramp

primary
#405A19
secondary
#5F3E90
accent
#48E085
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405A19

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

Preview Lab → · Contrast checker → · Palette generator →

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