#406E22#406E22

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

Color values

HEX#406E22
RGBrgb(64, 110, 34)
HSLhsl(96, 53%, 28%)
HSVhsv(96, 69%, 43%)
CMYKcmyk(41.8%, 0%, 69.1%, 56.9%)
CIE-LABlab(41.78, -30.11, 36.16)
CIE-LCHlch(41.78, 47.06, 129.79°)
OKLaboklab(48.79% -0.0838 0.083)
OKLCHoklch(48.79% 0.118 135.3)
XYZxyz(7.9788, 12.3569, 3.4778)
Luminance0.1236 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E22 #50226E
analogous
#666E22 #406E22 #226E2A
triadic
#406E22 #22406E #6E2240
tetradic
#406E22 #22666E #50226E #6E2A22
square
#406E22 #22666E #50226E #6E2A22
split-complementary
#406E22 #2A226E #6E2266
monochromatic
#0E1707 #253F14 #406E22 #5B9D30 #78C545

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406E22#FFFFFF#000000##FFFFFF
##406E221.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)
#726518
Deuteranopia (green-blind)
#6C6128
Tritanopia (blue-blind)
#3F6A5E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406e22;
/* rgb */ color: rgb(64, 110, 34);
/* oklch */ color: oklch(48.8% 0.118 135.3);
Tailwind
colors: {
  custom: {
    50: '#799861',
    500: '#406e22',
    950: '#000000',
  },
}
SCSS
$custom: #406e22;
$custom-light: #799861;
$custom-dark: #000000;
JSON
{
  "hex": "#406e22",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 34
  },
  "hsl": {
    "h": 96.316,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48794,
    "c": 0.11791,
    "h": 135.3
  },
  "luminance": 0.12357
}

Semantic roles & 50–950 ramp

primary
#406E22
secondary
#7F4AA1
accent
#4CDCA3
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406E22

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

Preview Lab → · Contrast checker → · Palette generator →

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