#407920#407920

#407920 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.8% C 0.135 H 136.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#407920
RGBrgb(64, 121, 32)
HSLhsl(98, 58%, 30%)
HSVhsv(98, 74%, 47%)
CMYKcmyk(47.1%, 0%, 73.6%, 52.5%)
CIE-LABlab(45.45, -35.21, 40.88)
CIE-LCHlch(45.45, 53.95, 130.74°)
OKLaboklab(51.8% -0.0978 0.0926)
OKLCHoklch(51.8% 0.135 136.6)
XYZxyz(9.2122, 14.8684, 3.7507)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407920 #592079
analogous
#6C7920 #407920 #20792D
triadic
#407920 #204079 #792040
tetradic
#407920 #206C79 #592079 #792D20
square
#407920 #206C79 #592079 #792D20
split-complementary
#407920 #2D2079 #79206C
monochromatic
#0D1806 #264913 #407920 #5AA92D #77CE45

Accessibility & contrast

On white

5.28
#407920 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#407920 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407920
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407920#FFFFFF#000000##FFFFFF
##4079201.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F11
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#3D7467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407920;
/* rgb */ color: rgb(64, 121, 32);
/* oklch */ color: oklch(51.8% 0.135 136.6);
Tailwind
colors: {
  custom: {
    50: '#7aa061',
    500: '#407920',
    950: '#000000',
  },
}
SCSS
$custom: #407920;
$custom-light: #7aa061;
$custom-dark: #000000;
JSON
{
  "hex": "#407920",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 32
  },
  "hsl": {
    "h": 98.427,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.518,
    "c": 0.13467,
    "h": 136.6
  },
  "luminance": 0.14869
}

Semantic roles & 50–950 ramp

primary
#407920
secondary
#8849AC
accent
#46E1AA
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407920

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

Preview Lab → · Contrast checker → · Palette generator →

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