#407220#407220

#407220 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.9% C 0.125 H 135.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#407220
RGBrgb(64, 114, 32)
HSLhsl(97, 56%, 29%)
HSVhsv(97, 72%, 45%)
CMYKcmyk(43.9%, 0%, 71.9%, 55.3%)
CIE-LABlab(43.11, -32.12, 38.45)
CIE-LCHlch(43.11, 50.10, 129.87°)
OKLaboklab(49.88% -0.0894 0.0875)
OKLCHoklch(49.88% 0.125 135.6)
XYZxyz(8.3922, 13.2284, 3.4774)
Luminance0.1323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407220 #522072
analogous
#697220 #407220 #207229
triadic
#407220 #204072 #722040
tetradic
#407220 #206972 #522072 #722920
square
#407220 #206972 #522072 #722920
split-complementary
#407220 #292072 #722069
monochromatic
#0D1807 #254213 #407220 #5BA22D #77CA42

Accessibility & contrast

On white

5.76
#407220 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#407220 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407220
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407220#FFFFFF#000000##FFFFFF
##4072201.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766814
Deuteranopia (green-blind)
#6F6427
Tritanopia (blue-blind)
#3E6E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407220;
/* rgb */ color: rgb(64, 114, 32);
/* oklch */ color: oklch(49.9% 0.125 135.6);
Tailwind
colors: {
  custom: {
    50: '#799b60',
    500: '#407220',
    950: '#000000',
  },
}
SCSS
$custom: #407220;
$custom-light: #799b60;
$custom-dark: #000000;
JSON
{
  "hex": "#407220",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 32
  },
  "hsl": {
    "h": 96.585,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49875,
    "c": 0.12509,
    "h": 135.6
  },
  "luminance": 0.13229
}

Semantic roles & 50–950 ramp

primary
#407220
secondary
#8148A6
accent
#48DFA4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #407220

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

Preview Lab → · Contrast checker → · Palette generator →

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