#40771D#40771D

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

Color values

HEX#40771D
RGBrgb(64, 119, 29)
HSLhsl(97, 61%, 29%)
HSVhsv(97, 76%, 47%)
CMYKcmyk(46.2%, 0%, 75.6%, 53.3%)
CIE-LABlab(44.76, -34.58, 41.38)
CIE-LCHlch(44.76, 53.92, 129.88°)
OKLaboklab(51.23% -0.0963 0.0932)
OKLCHoklch(51.23% 0.134 135.9)
XYZxyz(8.9327, 14.3718, 3.4655)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40771D #541D77
analogous
#6D771D #40771D #1D7727
triadic
#40771D #1D4077 #771D40
tetradic
#40771D #1D6D77 #541D77 #77271D
square
#40771D #1D6D77 #541D77 #77271D
split-complementary
#40771D #271D77 #771D6D
monochromatic
#0D1906 #264611 #40771D #5AA829 #77D03E

Accessibility & contrast

On white

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

On black

3.87
#40771D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40771D#FFFFFF#000000##FFFFFF
##40771D1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40771d;
/* rgb */ color: rgb(64, 119, 29);
/* oklch */ color: oklch(51.2% 0.134 135.9);
Tailwind
colors: {
  custom: {
    50: '#7a9f5f',
    500: '#40771d',
    950: '#000000',
  },
}
SCSS
$custom: #40771d;
$custom-light: #7a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40771d",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 96.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51225,
    "c": 0.13399,
    "h": 135.9
  },
  "luminance": 0.14372
}

Semantic roles & 50–950 ramp

primary
#40771D
secondary
#8345AB
accent
#44E4A6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40771D

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

Preview Lab → · Contrast checker → · Palette generator →

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