#407222#407222

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

Color values

HEX#407222
RGBrgb(64, 114, 34)
HSLhsl(98, 54%, 29%)
HSVhsv(98, 70%, 45%)
CMYKcmyk(43.9%, 0%, 70.2%, 55.3%)
CIE-LABlab(43.12, -31.94, 37.60)
CIE-LCHlch(43.12, 49.33, 130.35°)
OKLaboklab(49.89% -0.0887 0.086)
OKLCHoklch(49.89% 0.124 135.9)
XYZxyz(8.4202, 13.2396, 3.6249)
Luminance0.1324 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407222 #542272
analogous
#687222 #407222 #22722C
triadic
#407222 #224072 #722240
tetradic
#407222 #226872 #542272 #722C22
square
#407222 #226872 #542272 #722C22
split-complementary
#407222 #2C2272 #722268
monochromatic
#0D1807 #264314 #407222 #5AA130 #77C846

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407222#FFFFFF#000000##FFFFFF
##4072221.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)
#766817
Deuteranopia (green-blind)
#6F6429
Tritanopia (blue-blind)
#3E6E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407222;
/* rgb */ color: rgb(64, 114, 34);
/* oklch */ color: oklch(49.9% 0.124 135.9);
Tailwind
colors: {
  custom: {
    50: '#799b62',
    500: '#407222',
    950: '#000000',
  },
}
SCSS
$custom: #407222;
$custom-light: #799b62;
$custom-dark: #000000;
JSON
{
  "hex": "#407222",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 34
  },
  "hsl": {
    "h": 97.5,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.49894,
    "c": 0.12358,
    "h": 135.9
  },
  "luminance": 0.1324
}

Semantic roles & 50–950 ramp

primary
#407222
secondary
#834BA5
accent
#4ADDA6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #407222

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

Preview Lab → · Contrast checker → · Palette generator →

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