#405A22#405A22

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

Color values

HEX#405A22
RGBrgb(64, 90, 34)
HSLhsl(88, 45%, 24%)
HSVhsv(88, 62%, 35%)
CMYKcmyk(28.9%, 0%, 62.2%, 64.7%)
CIE-LABlab(35.04, -20.26, 28.70)
CIE-LCHlch(35.04, 35.13, 125.21°)
OKLaboklab(43.31% -0.0567 0.0671)
OKLCHoklch(43.31% 0.088 130.2)
XYZxyz(6.0592, 8.5177, 2.8379)
Luminance0.0852 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A22 #3C225A
analogous
#5A5822 #405A22 #245A22
triadic
#405A22 #22405A #5A2240
tetradic
#405A22 #225A58 #3C225A #5A2224
square
#405A22 #225A58 #3C225A #5A2224
split-complementary
#405A22 #22245A #58225A
monochromatic
#101608 #202E11 #405A22 #608633 #7FB344

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405A22#FFFFFF#000000##FFFFFF
##405A221.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)
#5E541C
Deuteranopia (green-blind)
#5A5226
Tritanopia (blue-blind)
#41564E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a22;
/* rgb */ color: rgb(64, 90, 34);
/* oklch */ color: oklch(43.3% 0.088 130.2);
Tailwind
colors: {
  custom: {
    50: '#77885f',
    500: '#405a22',
    950: '#000000',
  },
}
SCSS
$custom: #405a22;
$custom-light: #77885f;
$custom-dark: #000000;
JSON
{
  "hex": "#405a22",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 34
  },
  "hsl": {
    "h": 87.857,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.0879,
    "h": 130.2
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#405A22
secondary
#694A8E
accent
#53D58F
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B05
muted
#7B7C79

Preview Lab

Preview with #405A22

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

Preview Lab → · Contrast checker → · Palette generator →

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