#407E20#407E20

#407E20 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.2% C 0.141 H 137.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#407E20
RGBrgb(64, 126, 32)
HSLhsl(100, 59%, 31%)
HSVhsv(100, 75%, 49%)
CMYKcmyk(49.2%, 0%, 74.6%, 50.6%)
CIE-LABlab(47.13, -37.35, 42.58)
CIE-LCHlch(47.13, 56.64, 131.26°)
OKLaboklab(53.17% -0.1035 0.0962)
OKLCHoklch(53.17% 0.141 137.1)
XYZxyz(9.8356, 16.1153, 3.9585)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E20 #5E207E
analogous
#6F7E20 #407E20 #207E2F
triadic
#407E20 #20407E #7E2040
tetradic
#407E20 #206F7E #5E207E #7E2F20
square
#407E20 #206F7E #5E207E #7E2F20
split-complementary
#407E20 #2F207E #7E206F
monochromatic
#0E1C07 #274D14 #407E20 #59AF2C #76D048

Accessibility & contrast

On white

4.97
#407E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#407E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E20
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E20#FFFFFF#000000##FFFFFF
##407E201.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#3C796C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e20;
/* rgb */ color: rgb(64, 126, 32);
/* oklch */ color: oklch(53.2% 0.141 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ba462',
    500: '#407e20',
    950: '#000000',
  },
}
SCSS
$custom: #407e20;
$custom-light: #7ba462;
$custom-dark: #000000;
JSON
{
  "hex": "#407e20",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 99.574,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53172,
    "c": 0.14132,
    "h": 137.1
  },
  "luminance": 0.16116
}

Semantic roles & 50–950 ramp

primary
#407E20
secondary
#8D49B1
accent
#45E3AD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407E20

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

Preview Lab → · Contrast checker → · Palette generator →

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