#40741A#40741A

#40741A is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.4% C 0.132 H 135.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#40741A
RGBrgb(64, 116, 26)
HSLhsl(95, 63%, 28%)
HSVhsv(95, 78%, 45%)
CMYKcmyk(44.8%, 0%, 77.6%, 54.5%)
CIE-LABlab(43.73, -33.48, 41.51)
CIE-LCHlch(43.73, 53.33, 128.88°)
OKLaboklab(50.38% -0.0935 0.093)
OKLCHoklch(50.38% 0.132 135.2)
XYZxyz(8.5460, 13.6549, 3.1624)
Luminance0.1366 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40741A #4E1A74
analogous
#6D741A #40741A #1A7421
triadic
#40741A #1A4074 #741A40
tetradic
#40741A #1A6D74 #4E1A74 #74211A
square
#40741A #1A6D74 #4E1A74 #74211A
split-complementary
#40741A #211A74 #741A6D
monochromatic
#0E1906 #24420F #40741A #5CA625 #78D236

Accessibility & contrast

On white

5.63
#40741A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#40741A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40741A
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40741A#FFFFFF#000000##FFFFFF
##40741A1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A07
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#3F6F63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40741a;
/* rgb */ color: rgb(64, 116, 26);
/* oklch */ color: oklch(50.4% 0.132 135.2);
Tailwind
colors: {
  custom: {
    50: '#7a9c5e',
    500: '#40741a',
    950: '#000000',
  },
}
SCSS
$custom: #40741a;
$custom-light: #7a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40741a",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 26
  },
  "hsl": {
    "h": 94.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50376,
    "c": 0.13189,
    "h": 135.2
  },
  "luminance": 0.13655
}

Semantic roles & 50–950 ramp

primary
#40741A
secondary
#7D41A9
accent
#41E6A1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40741A

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

Preview Lab → · Contrast checker → · Palette generator →

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