#40761F#40761F

#40761F is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 51.0% C 0.131 H 136.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#40761F
RGBrgb(64, 118, 31)
HSLhsl(97, 58%, 29%)
HSVhsv(97, 74%, 46%)
CMYKcmyk(45.8%, 0%, 73.7%, 53.7%)
CIE-LABlab(44.44, -33.98, 40.25)
CIE-LCHlch(44.44, 52.68, 130.17°)
OKLaboklab(50.97% -0.0945 0.0911)
OKLCHoklch(50.97% 0.131 136)
XYZxyz(8.8399, 14.1453, 3.5606)
Luminance0.1415 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40761F #551F76
analogous
#6C761F #40761F #1F762A
triadic
#40761F #1F4076 #761F40
tetradic
#40761F #1F6C76 #551F76 #762A1F
square
#40761F #1F6C76 #551F76 #762A1F
split-complementary
#40761F #2A1F76 #761F6C
monochromatic
#0D1806 #264612 #40761F #5AA62C #77CD42

Accessibility & contrast

On white

5.48
#40761F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#40761F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40761F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40761F#FFFFFF#000000##FFFFFF
##40761F1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#736727
Tritanopia (blue-blind)
#3E7165
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #40761f;
/* rgb */ color: rgb(64, 118, 31);
/* oklch */ color: oklch(51.0% 0.131 136.0);
Tailwind
colors: {
  custom: {
    50: '#7a9e60',
    500: '#40761f',
    950: '#000000',
  },
}
SCSS
$custom: #40761f;
$custom-light: #7a9e60;
$custom-dark: #000000;
JSON
{
  "hex": "#40761f",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 31
  },
  "hsl": {
    "h": 97.241,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50966,
    "c": 0.1313,
    "h": 136
  },
  "luminance": 0.14146
}

Semantic roles & 50–950 ramp

primary
#40761F
secondary
#8447AA
accent
#46E2A7
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40761F

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

Preview Lab → · Contrast checker → · Palette generator →

#40761F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva