#406A22#406A22

#406A22 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.7% C 0.112 H 134.6°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#406A22
RGBrgb(64, 106, 34)
HSLhsl(95, 51%, 27%)
HSVhsv(95, 68%, 42%)
CMYKcmyk(39.6%, 0%, 67.9%, 58.4%)
CIE-LABlab(40.43, -28.24, 34.71)
CIE-LCHlch(40.43, 44.74, 129.13°)
OKLaboklab(47.69% -0.0787 0.0799)
OKLCHoklch(47.69% 0.112 134.6)
XYZxyz(7.5570, 11.5132, 3.3372)
Luminance0.1151 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A22 #4C226A
analogous
#646A22 #406A22 #226A28
triadic
#406A22 #22406A #6A2240
tetradic
#406A22 #22646A #4C226A #6A2822
square
#406A22 #22646A #4C226A #6A2822
split-complementary
#406A22 #28226A #6A2264
monochromatic
#0E1707 #243C13 #406A22 #5C9831 #79C344

Accessibility & contrast

On white

6.36
#406A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#406A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406A22
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406A22#FFFFFF#000000##FFFFFF
##406A221.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6119
Deuteranopia (green-blind)
#685E28
Tritanopia (blue-blind)
#3F665B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a22;
/* rgb */ color: rgb(64, 106, 34);
/* oklch */ color: oklch(47.7% 0.112 134.6);
Tailwind
colors: {
  custom: {
    50: '#789561',
    500: '#406a22',
    950: '#000000',
  },
}
SCSS
$custom: #406a22;
$custom-light: #789561;
$custom-dark: #000000;
JSON
{
  "hex": "#406a22",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 34
  },
  "hsl": {
    "h": 95,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.47694,
    "c": 0.11214,
    "h": 134.6
  },
  "luminance": 0.11514
}

Semantic roles & 50–950 ramp

primary
#406A22
secondary
#7B4A9E
accent
#4DDBA0
background
#F7F9F5
surface
#EDF1EA
border
#C8CBC6
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406A22

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

Preview Lab → · Contrast checker → · Palette generator →

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