#407221#407221

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

Color values

HEX#407221
RGBrgb(64, 114, 33)
HSLhsl(97, 55%, 29%)
HSVhsv(97, 71%, 45%)
CMYKcmyk(43.9%, 0%, 71.1%, 55.3%)
CIE-LABlab(43.11, -32.03, 38.03)
CIE-LCHlch(43.11, 49.72, 130.11°)
OKLaboklab(49.88% -0.0891 0.0868)
OKLCHoklch(49.88% 0.124 135.7)
XYZxyz(8.4060, 13.2340, 3.5500)
Luminance0.1323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407221 #532172
analogous
#697221 #407221 #21722B
triadic
#407221 #214072 #722140
tetradic
#407221 #216972 #532172 #722B21
square
#407221 #216972 #532172 #722B21
split-complementary
#407221 #2B2172 #722169
monochromatic
#0D1807 #254313 #407221 #5BA12F #77C944

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407221#FFFFFF#000000##FFFFFF
##4072211.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)
#766815
Deuteranopia (green-blind)
#6F6428
Tritanopia (blue-blind)
#3E6E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407221;
/* rgb */ color: rgb(64, 114, 33);
/* oklch */ color: oklch(49.9% 0.124 135.7);
Tailwind
colors: {
  custom: {
    50: '#799b61',
    500: '#407221',
    950: '#000000',
  },
}
SCSS
$custom: #407221;
$custom-light: #799b61;
$custom-dark: #000000;
JSON
{
  "hex": "#407221",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 97.037,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.49884,
    "c": 0.12435,
    "h": 135.7
  },
  "luminance": 0.13234
}

Semantic roles & 50–950 ramp

primary
#407221
secondary
#8249A5
accent
#49DEA5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #407221

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

Preview Lab → · Contrast checker → · Palette generator →

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