#407720#407720

#407720 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.2% C 0.132 H 136.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#407720
RGBrgb(64, 119, 32)
HSLhsl(98, 58%, 30%)
HSVhsv(98, 73%, 47%)
CMYKcmyk(46.2%, 0%, 73.1%, 53.3%)
CIE-LABlab(44.78, -34.34, 40.19)
CIE-LCHlch(44.78, 52.86, 130.51°)
OKLaboklab(51.25% -0.0954 0.0912)
OKLCHoklch(51.25% 0.132 136.3)
XYZxyz(8.9716, 14.3874, 3.6705)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407720 #572077
analogous
#6C7720 #407720 #20772C
triadic
#407720 #204077 #772040
tetradic
#407720 #206C77 #572077 #772C20
square
#407720 #206C77 #572077 #772C20
split-complementary
#407720 #2C2077 #77206C
monochromatic
#0D1806 #264713 #407720 #5AA72D #77CD45

Accessibility & contrast

On white

5.42
#407720 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#407720 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407720
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407720#FFFFFF#000000##FFFFFF
##4077201.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D12
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#3E7266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #407720;
/* rgb */ color: rgb(64, 119, 32);
/* oklch */ color: oklch(51.2% 0.132 136.3);
Tailwind
colors: {
  custom: {
    50: '#7a9f61',
    500: '#407720',
    950: '#000000',
  },
}
SCSS
$custom: #407720;
$custom-light: #7a9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#407720",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 32
  },
  "hsl": {
    "h": 97.931,
    "s": 57.616,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5125,
    "c": 0.13196,
    "h": 136.3
  },
  "luminance": 0.14388
}

Semantic roles & 50–950 ramp

primary
#407720
secondary
#8648AA
accent
#47E1A8
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #407720

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

Preview Lab → · Contrast checker → · Palette generator →

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