#405A1A#405A1A

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

Color values

HEX#405A1A
RGBrgb(64, 90, 26)
HSLhsl(84, 55%, 23%)
HSVhsv(84, 71%, 35%)
CMYKcmyk(28.9%, 0%, 71.1%, 64.7%)
CIE-LABlab(34.96, -21.03, 32.57)
CIE-LCHlch(34.96, 38.77, 122.85°)
OKLaboklab(43.21% -0.0597 0.0743)
OKLCHoklch(43.21% 0.095 128.8)
XYZxyz(5.9570, 8.4768, 2.2994)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A1A #341A5A
analogous
#5A541A #405A1A #205A1A
triadic
#405A1A #1A405A #5A1A40
tetradic
#405A1A #1A5A54 #341A5A #5A1A20
square
#405A1A #1A5A54 #341A5A #5A1A20
split-complementary
#405A1A #1A205A #541A5A
monochromatic
#111807 #1E2B0C #405A1A #628928 #84B935

Accessibility & contrast

On white

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

On black

2.70
#405A1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##405A1A#FFFFFF#000000##FFFFFF
##405A1A1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405a1a;
/* rgb */ color: rgb(64, 90, 26);
/* oklch */ color: oklch(43.2% 0.095 128.8);
Tailwind
colors: {
  custom: {
    50: '#77885a',
    500: '#405a1a',
    950: '#000000',
  },
}
SCSS
$custom: #405a1a;
$custom-light: #77885a;
$custom-dark: #000000;
JSON
{
  "hex": "#405a1a",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 26
  },
  "hsl": {
    "h": 84.375,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43213,
    "c": 0.09528,
    "h": 128.8
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#405A1A
secondary
#604090
accent
#49DF86
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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