#40771A#40771A

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

Color values

HEX#40771A
RGBrgb(64, 119, 26)
HSLhsl(95, 64%, 28%)
HSVhsv(95, 78%, 47%)
CMYKcmyk(46.2%, 0%, 78.2%, 53.3%)
CIE-LABlab(44.74, -34.79, 42.50)
CIE-LCHlch(44.74, 54.92, 129.30°)
OKLaboklab(51.2% -0.0971 0.0951)
OKLCHoklch(51.2% 0.136 135.6)
XYZxyz(8.8974, 14.3577, 3.2796)
Luminance0.1436 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40771A #511A77
analogous
#6E771A #40771A #1A7722
triadic
#40771A #1A4077 #771A40
tetradic
#40771A #1A6E77 #511A77 #77221A
square
#40771A #1A6E77 #511A77 #77221A
split-complementary
#40771A #221A77 #771A6E
monochromatic
#0E1905 #25450F #40771A #5BA925 #77D338

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40771A#FFFFFF#000000##FFFFFF
##40771A1.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)
#7C6D06
Deuteranopia (green-blind)
#746824
Tritanopia (blue-blind)
#3E7265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #40771a;
/* rgb */ color: rgb(64, 119, 26);
/* oklch */ color: oklch(51.2% 0.136 135.6);
Tailwind
colors: {
  custom: {
    50: '#7a9f5e',
    500: '#40771a',
    950: '#000000',
  },
}
SCSS
$custom: #40771a;
$custom-light: #7a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40771a",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 95.484,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51202,
    "c": 0.13587,
    "h": 135.6
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#40771A
secondary
#8041AC
accent
#41E7A3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40771A

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

Preview Lab → · Contrast checker → · Palette generator →

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