#407A22#407A22

#407A22 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.1% C 0.135 H 136.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#407A22
RGBrgb(64, 122, 34)
HSLhsl(100, 56%, 31%)
HSVhsv(100, 72%, 48%)
CMYKcmyk(47.5%, 0%, 72.1%, 52.2%)
CIE-LABlab(45.80, -35.48, 40.41)
CIE-LCHlch(45.80, 53.78, 131.28°)
OKLaboklab(52.09% -0.0983 0.0919)
OKLCHoklch(52.09% 0.135 136.9)
XYZxyz(9.3623, 15.1240, 3.9389)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A22 #5C227A
analogous
#6C7A22 #407A22 #227A30
triadic
#407A22 #22407A #7A2240
tetradic
#407A22 #226C7A #5C227A #7A3022
square
#407A22 #226C7A #5C227A #7A3022
split-complementary
#407A22 #30227A #7A226C
monochromatic
#0E1A07 #274A15 #407A22 #59AA2F #76CD4A

Accessibility & contrast

On white

5.22
#407A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#407A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A22
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A22#FFFFFF#000000##FFFFFF
##407A221.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F15
Deuteranopia (green-blind)
#766B2A
Tritanopia (blue-blind)
#3D7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a22;
/* rgb */ color: rgb(64, 122, 34);
/* oklch */ color: oklch(52.1% 0.135 136.9);
Tailwind
colors: {
  custom: {
    50: '#7aa163',
    500: '#407a22',
    950: '#000000',
  },
}
SCSS
$custom: #407a22;
$custom-light: #7aa163;
$custom-dark: #000000;
JSON
{
  "hex": "#407a22",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 99.545,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52092,
    "c": 0.1346,
    "h": 136.9
  },
  "luminance": 0.15125
}

Semantic roles & 50–950 ramp

primary
#407A22
secondary
#8B4BAD
accent
#48E0AC
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0F05
muted
#7C7E7A

Preview Lab

Preview with #407A22

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

Preview Lab → · Contrast checker → · Palette generator →

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