#407D20#407D20

#407D20 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 52.9% C 0.140 H 137.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407D20
RGBrgb(64, 125, 32)
HSLhsl(99, 59%, 31%)
HSVhsv(99, 74%, 49%)
CMYKcmyk(48.8%, 0%, 74.4%, 51%)
CIE-LABlab(46.79, -36.93, 42.24)
CIE-LCHlch(46.79, 56.11, 131.16°)
OKLaboklab(52.9% -0.1024 0.0955)
OKLCHoklch(52.9% 0.14 137)
XYZxyz(9.7084, 15.8609, 3.9161)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D20 #5D207D
analogous
#6E7D20 #407D20 #207D2E
triadic
#407D20 #20407D #7D2040
tetradic
#407D20 #206E7D #5D207D #7D2E20
square
#407D20 #206E7D #5D207D #7D2E20
split-complementary
#407D20 #2E207D #7D206E
monochromatic
#0E1C07 #274C14 #407D20 #59AE2C #76D047

Accessibility & contrast

On white

5.03
#407D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#407D20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D20
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D20#FFFFFF#000000##FFFFFF
##407D201.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817210
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#3D786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d20;
/* rgb */ color: rgb(64, 125, 32);
/* oklch */ color: oklch(52.9% 0.140 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ba362',
    500: '#407d20',
    950: '#000000',
  },
}
SCSS
$custom: #407d20;
$custom-light: #7ba362;
$custom-dark: #000000;
JSON
{
  "hex": "#407d20",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 99.355,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52898,
    "c": 0.13999,
    "h": 137
  },
  "luminance": 0.15862
}

Semantic roles & 50–950 ramp

primary
#407D20
secondary
#8C49B0
accent
#45E2AC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407D20

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

Preview Lab → · Contrast checker → · Palette generator →

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