#405D20#405D20

#405D20 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 44.1% C 0.094 H 130.9°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#405D20
RGBrgb(64, 93, 32)
HSLhsl(89, 49%, 25%)
HSVhsv(89, 66%, 36%)
CMYKcmyk(31.2%, 0%, 65.6%, 63.5%)
CIE-LABlab(36.03, -22.02, 30.84)
CIE-LCHlch(36.03, 37.89, 125.53°)
OKLaboklab(44.1% -0.0618 0.0715)
OKLCHoklch(44.1% 0.094 130.9)
XYZxyz(6.2894, 9.0228, 2.7764)
Luminance0.0902 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D20 #3D205D
analogous
#5D5C20 #405D20 #215D20
triadic
#405D20 #20405D #5D2040
tetradic
#405D20 #205D5C #3D205D #5D2021
square
#405D20 #205D5C #3D205D #5D2021
split-complementary
#405D20 #20215D #5C205D
monochromatic
#101708 #212F10 #405D20 #5F8B30 #7FB83F

Accessibility & contrast

On white

7.49
#405D20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#405D20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D20
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D20#FFFFFF#000000##FFFFFF
##405D201.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615619
Deuteranopia (green-blind)
#5D5425
Tritanopia (blue-blind)
#415950
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d20;
/* rgb */ color: rgb(64, 93, 32);
/* oklch */ color: oklch(44.1% 0.094 130.9);
Tailwind
colors: {
  custom: {
    50: '#778b5e',
    500: '#405d20',
    950: '#000000',
  },
}
SCSS
$custom: #405d20;
$custom-light: #778b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#405d20",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 32
  },
  "hsl": {
    "h": 88.525,
    "s": 48.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.44102,
    "c": 0.09448,
    "h": 130.9
  },
  "luminance": 0.09023
}

Semantic roles & 50–950 ramp

primary
#405D20
secondary
#6B4791
accent
#4FD891
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405D20

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

Preview Lab → · Contrast checker → · Palette generator →

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