#407916#407916

#407916 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.7% C 0.141 H 135.5°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#407916
RGBrgb(64, 121, 22)
HSLhsl(95, 69%, 28%)
HSVhsv(95, 82%, 47%)
CMYKcmyk(47.1%, 0%, 81.8%, 52.5%)
CIE-LABlab(45.39, -35.90, 44.51)
CIE-LCHlch(45.39, 57.18, 128.89°)
OKLaboklab(51.73% -0.1003 0.0987)
OKLCHoklch(51.73% 0.141 135.5)
XYZxyz(9.0963, 14.8221, 3.1405)
Luminance0.1482 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407916 #4F1679
analogous
#727916 #407916 #16791D
triadic
#407916 #164079 #791640
tetradic
#407916 #167279 #4F1679 #791D16
square
#407916 #167279 #4F1679 #791D16
split-complementary
#407916 #1D1679 #791672
monochromatic
#0E1A05 #25450D #407916 #5BAD1F #78D930

Accessibility & contrast

On white

5.30
#407916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#407916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407916
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407916#FFFFFF#000000##FFFFFF
##4079161.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#766A21
Tritanopia (blue-blind)
#3E7467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407916;
/* rgb */ color: rgb(64, 121, 22);
/* oklch */ color: oklch(51.7% 0.141 135.5);
Tailwind
colors: {
  custom: {
    50: '#7ba05c',
    500: '#407916',
    950: '#000000',
  },
}
SCSS
$custom: #407916;
$custom-light: #7ba05c;
$custom-dark: #000000;
JSON
{
  "hex": "#407916",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 94.545,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51727,
    "c": 0.14071,
    "h": 135.5
  },
  "luminance": 0.14823
}

Semantic roles & 50–950 ramp

primary
#407916
secondary
#7E3DAE
accent
#3CECA1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F04
muted
#7C7E79

Preview Lab

Preview with #407916

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

Preview Lab → · Contrast checker → · Palette generator →

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