#407420#407420

#407420 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.4% C 0.128 H 135.9°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#407420
RGBrgb(64, 116, 32)
HSLhsl(97, 57%, 29%)
HSVhsv(97, 72%, 45%)
CMYKcmyk(44.8%, 0%, 72.4%, 54.5%)
CIE-LABlab(43.78, -33.02, 39.15)
CIE-LCHlch(43.78, 51.21, 130.14°)
OKLaboklab(50.43% -0.0918 0.089)
OKLCHoklch(50.43% 0.128 135.9)
XYZxyz(8.6202, 13.6846, 3.5534)
Luminance0.1368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407420 #542074
analogous
#6A7420 #407420 #20742A
triadic
#407420 #204074 #742040
tetradic
#407420 #206A74 #542074 #742A20
square
#407420 #206A74 #542074 #742A20
split-complementary
#407420 #2A2074 #74206A
monochromatic
#0D1807 #264413 #407420 #5AA42D #77CB43

Accessibility & contrast

On white

5.62
#407420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#407420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407420
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407420#FFFFFF#000000##FFFFFF
##4074201.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A13
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#3E7063
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #407420;
/* rgb */ color: rgb(64, 116, 32);
/* oklch */ color: oklch(50.4% 0.128 135.9);
Tailwind
colors: {
  custom: {
    50: '#7a9c61',
    500: '#407420',
    950: '#000000',
  },
}
SCSS
$custom: #407420;
$custom-light: #7a9c61;
$custom-dark: #000000;
JSON
{
  "hex": "#407420",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 32
  },
  "hsl": {
    "h": 97.143,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50425,
    "c": 0.12785,
    "h": 135.9
  },
  "luminance": 0.13685
}

Semantic roles & 50–950 ramp

primary
#407420
secondary
#8348A8
accent
#48E0A6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #407420

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

Preview Lab → · Contrast checker → · Palette generator →

#407420 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva