#406E20#406E20

#406E20 is a mid, moderate yellow-green. Relative luminance 0.123; OKLCH L 48.8% C 0.119 H 135.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#406E20
RGBrgb(64, 110, 32)
HSLhsl(95, 55%, 28%)
HSVhsv(95, 71%, 43%)
CMYKcmyk(41.8%, 0%, 70.9%, 56.9%)
CIE-LABlab(41.76, -30.29, 37.04)
CIE-LCHlch(41.76, 47.85, 129.28°)
OKLaboklab(48.77% -0.0844 0.0846)
OKLCHoklch(48.77% 0.119 135)
XYZxyz(7.9508, 12.3457, 3.3302)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E20 #4E206E
analogous
#676E20 #406E20 #206E27
triadic
#406E20 #20406E #6E2040
tetradic
#406E20 #20676E #4E206E #6E2720
square
#406E20 #20676E #4E206E #6E2720
split-complementary
#406E20 #27206E #6E2067
monochromatic
#0E1807 #243F12 #406E20 #5C9D2E #78C841

Accessibility & contrast

On white

6.05
#406E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#406E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406E20
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406E20#FFFFFF#000000##FFFFFF
##406E201.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726515
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#3F6A5E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406e20;
/* rgb */ color: rgb(64, 110, 32);
/* oklch */ color: oklch(48.8% 0.119 135.0);
Tailwind
colors: {
  custom: {
    50: '#799860',
    500: '#406e20',
    950: '#000000',
  },
}
SCSS
$custom: #406e20;
$custom-light: #799860;
$custom-dark: #000000;
JSON
{
  "hex": "#406e20",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 32
  },
  "hsl": {
    "h": 95.385,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.11949,
    "h": 135
  },
  "luminance": 0.12346
}

Semantic roles & 50–950 ramp

primary
#406E20
secondary
#7D48A2
accent
#4ADEA1
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406E20

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

Preview Lab → · Contrast checker → · Palette generator →

#406E20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva