#405A28#405A28

#405A28 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.4% C 0.082 H 131.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#405A28
RGBrgb(64, 90, 40)
HSLhsl(91, 38%, 25%)
HSVhsv(91, 56%, 35%)
CMYKcmyk(28.9%, 0%, 55.6%, 64.7%)
CIE-LABlab(35.11, -19.55, 25.56)
CIE-LCHlch(35.11, 32.18, 127.41°)
OKLaboklab(43.39% -0.0543 0.0609)
OKLCHoklch(43.39% 0.082 131.7)
XYZxyz(6.1534, 8.5554, 3.3342)
Luminance0.0856 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A28 #42285A
analogous
#595A28 #405A28 #285A29
triadic
#405A28 #28405A #5A2840
tetradic
#405A28 #28595A #42285A #5A2928
square
#405A28 #28595A #42285A #5A2928
split-complementary
#405A28 #29285A #5A2859
monochromatic
#0F1509 #223015 #405A28 #5E843B #7CAF4E

Accessibility & contrast

On white

7.75
#405A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#405A28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A28
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A28#FFFFFF#000000##FFFFFF
##405A281.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5423
Deuteranopia (green-blind)
#5A522B
Tritanopia (blue-blind)
#41574F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405a28;
/* rgb */ color: rgb(64, 90, 40);
/* oklch */ color: oklch(43.4% 0.082 131.7);
Tailwind
colors: {
  custom: {
    50: '#768863',
    500: '#405a28',
    950: '#000000',
  },
}
SCSS
$custom: #405a28;
$custom-light: #768863;
$custom-dark: #000000;
JSON
{
  "hex": "#405a28",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 40
  },
  "hsl": {
    "h": 91.2,
    "s": 38.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.43391,
    "c": 0.08157,
    "h": 131.7
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#405A28
secondary
#70518D
accent
#59CE96
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090B05
muted
#7B7C7A

Preview Lab

Preview with #405A28

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

Preview Lab → · Contrast checker → · Palette generator →

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