#40741F#40741F

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

Color values

HEX#40741F
RGBrgb(64, 116, 31)
HSLhsl(97, 58%, 29%)
HSVhsv(97, 73%, 45%)
CMYKcmyk(44.8%, 0%, 73.3%, 54.5%)
CIE-LABlab(43.77, -33.10, 39.56)
CIE-LCHlch(43.77, 51.58, 129.91°)
OKLaboklab(50.42% -0.0921 0.0897)
OKLCHoklch(50.42% 0.129 135.8)
XYZxyz(8.6069, 13.6792, 3.4829)
Luminance0.1368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40741F #531F74
analogous
#6B741F #40741F #1F7429
triadic
#40741F #1F4074 #741F40
tetradic
#40741F #1F6B74 #531F74 #74291F
square
#40741F #1F6B74 #531F74 #74291F
split-complementary
#40741F #291F74 #741F6B
monochromatic
#0D1806 #254412 #40741F #5BA42C #77CC41

Accessibility & contrast

On white

5.62
#40741F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#40741F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40741F
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40741F#FFFFFF#000000##FFFFFF
##40741F1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A11
Deuteranopia (green-blind)
#716627
Tritanopia (blue-blind)
#3E7063
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40741f;
/* rgb */ color: rgb(64, 116, 31);
/* oklch */ color: oklch(50.4% 0.129 135.8);
Tailwind
colors: {
  custom: {
    50: '#7a9c60',
    500: '#40741f',
    950: '#000000',
  },
}
SCSS
$custom: #40741f;
$custom-light: #7a9c60;
$custom-dark: #000000;
JSON
{
  "hex": "#40741f",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 96.706,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50416,
    "c": 0.12858,
    "h": 135.8
  },
  "luminance": 0.1368
}

Semantic roles & 50–950 ramp

primary
#40741F
secondary
#8247A8
accent
#47E1A5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40741F

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

Preview Lab → · Contrast checker → · Palette generator →

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