#40771E#40771E

#40771E is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.2% C 0.133 H 136.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#40771E
RGBrgb(64, 119, 30)
HSLhsl(97, 60%, 29%)
HSVhsv(97, 75%, 47%)
CMYKcmyk(46.2%, 0%, 74.8%, 53.3%)
CIE-LABlab(44.77, -34.50, 40.99)
CIE-LCHlch(44.77, 53.58, 130.09°)
OKLaboklab(51.23% -0.096 0.0925)
OKLCHoklch(51.23% 0.133 136)
XYZxyz(8.9453, 14.3768, 3.5317)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40771E #551E77
analogous
#6D771E #40771E #1E7729
triadic
#40771E #1E4077 #771E40
tetradic
#40771E #1E6D77 #551E77 #77291E
square
#40771E #1E6D77 #551E77 #77291E
split-complementary
#40771E #291E77 #771E6D
monochromatic
#0D1806 #264612 #40771E #5AA82A #77CF40

Accessibility & contrast

On white

5.42
#40771E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#40771E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40771E
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40771E#FFFFFF#000000##FFFFFF
##40771E1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D0F
Deuteranopia (green-blind)
#746827
Tritanopia (blue-blind)
#3E7266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #40771e;
/* rgb */ color: rgb(64, 119, 30);
/* oklch */ color: oklch(51.2% 0.133 136.0);
Tailwind
colors: {
  custom: {
    50: '#7a9f60',
    500: '#40771e',
    950: '#000000',
  },
}
SCSS
$custom: #40771e;
$custom-light: #7a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#40771e",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 97.079,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.13333,
    "h": 136
  },
  "luminance": 0.14377
}

Semantic roles & 50–950 ramp

primary
#40771E
secondary
#8446AB
accent
#45E3A7
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40771E

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

Preview Lab → · Contrast checker → · Palette generator →

#40771E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva