#40761C#40761C

#40761C is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 50.9% C 0.133 H 135.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#40761C
RGBrgb(64, 118, 28)
HSLhsl(96, 62%, 29%)
HSVhsv(96, 76%, 46%)
CMYKcmyk(45.8%, 0%, 76.3%, 53.7%)
CIE-LABlab(44.42, -34.21, 41.43)
CIE-LCHlch(44.42, 53.73, 129.55°)
OKLaboklab(50.94% -0.0954 0.0932)
OKLCHoklch(50.94% 0.133 135.7)
XYZxyz(8.8022, 14.1302, 3.3620)
Luminance0.1413 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40761C #521C76
analogous
#6D761C #40761C #1C7625
triadic
#40761C #1C4076 #761C40
tetradic
#40761C #1C6D76 #521C76 #76251C
square
#40761C #1C6D76 #521C76 #76251C
split-complementary
#40761C #251C76 #761C6D
monochromatic
#0D1906 #254510 #40761C #5BA728 #77D13C

Accessibility & contrast

On white

5.49
#40761C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40761C
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40761C#FFFFFF#000000##FFFFFF
##40761C1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40761c;
/* rgb */ color: rgb(64, 118, 28);
/* oklch */ color: oklch(50.9% 0.133 135.7);
Tailwind
colors: {
  custom: {
    50: '#7a9e5f',
    500: '#40761c',
    950: '#000000',
  },
}
SCSS
$custom: #40761c;
$custom-light: #7a9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40761c",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 28
  },
  "hsl": {
    "h": 96,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50942,
    "c": 0.13331,
    "h": 135.7
  },
  "luminance": 0.14131
}

Semantic roles & 50–950 ramp

primary
#40761C
secondary
#8144AA
accent
#43E5A4
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40761C

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

Preview Lab → · Contrast checker → · Palette generator →

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