#405A20#405A20

#405A20 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.3% C 0.090 H 129.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#405A20
RGBrgb(64, 90, 32)
HSLhsl(87, 48%, 24%)
HSVhsv(87, 64%, 35%)
CMYKcmyk(28.9%, 0%, 64.4%, 64.7%)
CIE-LABlab(35.02, -20.47, 29.71)
CIE-LCHlch(35.02, 36.07, 124.57°)
OKLaboklab(43.28% -0.0575 0.069)
OKLCHoklch(43.28% 0.09 129.8)
XYZxyz(6.0312, 8.5065, 2.6904)
Luminance0.0851 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A20 #3A205A
analogous
#5A5720 #405A20 #235A20
triadic
#405A20 #20405A #5A2040
tetradic
#405A20 #205A57 #3A205A #5A2023
square
#405A20 #205A57 #3A205A #5A2023
split-complementary
#405A20 #20235A #57205A
monochromatic
#101708 #202D10 #405A20 #608730 #80B440

Accessibility & contrast

On white

7.77
#405A20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405A20
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A20#FFFFFF#000000##FFFFFF
##405A201.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E541A
Deuteranopia (green-blind)
#5B5224
Tritanopia (blue-blind)
#42564E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a20;
/* rgb */ color: rgb(64, 90, 32);
/* oklch */ color: oklch(43.3% 0.090 129.8);
Tailwind
colors: {
  custom: {
    50: '#77885e',
    500: '#405a20',
    950: '#000000',
  },
}
SCSS
$custom: #405a20;
$custom-light: #77885e;
$custom-dark: #000000;
JSON
{
  "hex": "#405a20",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 32
  },
  "hsl": {
    "h": 86.897,
    "s": 47.541,
    "l": 23.922
  },
  "oklch": {
    "l": 0.4328,
    "c": 0.08987,
    "h": 129.8
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#405A20
secondary
#67478E
accent
#51D78D
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405A20

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

Preview Lab → · Contrast checker → · Palette generator →

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