#405820#405820

#405820 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.7% C 0.087 H 129.0°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#405820
RGBrgb(64, 88, 32)
HSLhsl(86, 47%, 24%)
HSVhsv(86, 64%, 35%)
CMYKcmyk(27.3%, 0%, 63.6%, 65.5%)
CIE-LABlab(34.34, -19.41, 28.95)
CIE-LCHlch(34.34, 34.85, 123.84°)
OKLaboklab(42.73% -0.0546 0.0674)
OKLCHoklch(42.73% 0.087 129)
XYZxyz(5.8648, 8.1736, 2.6349)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405820 #382058
analogous
#585420 #405820 #245820
triadic
#405820 #204058 #582040
tetradic
#405820 #205854 #382058 #582024
square
#405820 #205854 #382058 #582024
split-complementary
#405820 #202458 #542058
monochromatic
#101608 #1F2B10 #405820 #618530 #81B241

Accessibility & contrast

On white

7.97
#405820 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#405820 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405820
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405820#FFFFFF#000000##FFFFFF
##4058201.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C521A
Deuteranopia (green-blind)
#595024
Tritanopia (blue-blind)
#42544C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405820;
/* rgb */ color: rgb(64, 88, 32);
/* oklch */ color: oklch(42.7% 0.087 129.0);
Tailwind
colors: {
  custom: {
    50: '#77875e',
    500: '#405820',
    950: '#000000',
  },
}
SCSS
$custom: #405820;
$custom-light: #77875e;
$custom-dark: #000000;
JSON
{
  "hex": "#405820",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 32
  },
  "hsl": {
    "h": 85.714,
    "s": 46.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.42734,
    "c": 0.08677,
    "h": 129
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#405820
secondary
#65478C
accent
#51D68A
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405820

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

Preview Lab → · Contrast checker → · Palette generator →

#405820 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva