#40771C#40771C

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

Color values

HEX#40771C
RGBrgb(64, 119, 28)
HSLhsl(96, 62%, 29%)
HSVhsv(96, 76%, 47%)
CMYKcmyk(46.2%, 0%, 76.5%, 53.3%)
CIE-LABlab(44.75, -34.65, 41.76)
CIE-LCHlch(44.75, 54.26, 129.68°)
OKLaboklab(51.22% -0.0965 0.0939)
OKLCHoklch(51.22% 0.135 135.8)
XYZxyz(8.9206, 14.3669, 3.4014)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40771C #531C77
analogous
#6E771C #40771C #1C7726
triadic
#40771C #1C4077 #771C40
tetradic
#40771C #1C6E77 #531C77 #77261C
square
#40771C #1C6E77 #531C77 #77261C
split-complementary
#40771C #261C77 #771C6E
monochromatic
#0D1906 #254510 #40771C #5BA928 #77D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40771C#FFFFFF#000000##FFFFFF
##40771C1.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)
#7B6D0A
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#3E7265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #40771c;
/* rgb */ color: rgb(64, 119, 28);
/* oklch */ color: oklch(51.2% 0.135 135.8);
Tailwind
colors: {
  custom: {
    50: '#7a9f5f',
    500: '#40771c',
    950: '#000000',
  },
}
SCSS
$custom: #40771c;
$custom-light: #7a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40771c",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 96.264,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51217,
    "c": 0.13464,
    "h": 135.8
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#40771C
secondary
#8244AB
accent
#43E5A5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40771C

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

Preview Lab → · Contrast checker → · Palette generator →

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