#40741E#40741E

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

Color values

HEX#40741E
RGBrgb(64, 116, 30)
HSLhsl(96, 59%, 29%)
HSVhsv(96, 74%, 45%)
CMYKcmyk(44.8%, 0%, 74.1%, 54.5%)
CIE-LABlab(43.76, -33.18, 39.97)
CIE-LCHlch(43.76, 51.94, 129.70°)
OKLaboklab(50.41% -0.0924 0.0904)
OKLCHoklch(50.41% 0.129 135.6)
XYZxyz(8.5939, 13.6740, 3.4146)
Luminance0.1368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40741E #521E74
analogous
#6B741E #40741E #1E7427
triadic
#40741E #1E4074 #741E40
tetradic
#40741E #1E6B74 #521E74 #74271E
square
#40741E #1E6B74 #521E74 #74271E
split-complementary
#40741E #271E74 #741E6B
monochromatic
#0D1806 #254311 #40741E #5BA52B #77CD3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40741E#FFFFFF#000000##FFFFFF
##40741E1.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)
#786A10
Deuteranopia (green-blind)
#716626
Tritanopia (blue-blind)
#3E6F63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40741e;
/* rgb */ color: rgb(64, 116, 30);
/* oklch */ color: oklch(50.4% 0.129 135.6);
Tailwind
colors: {
  custom: {
    50: '#7a9c60',
    500: '#40741e',
    950: '#000000',
  },
}
SCSS
$custom: #40741e;
$custom-light: #7a9c60;
$custom-dark: #000000;
JSON
{
  "hex": "#40741e",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 30
  },
  "hsl": {
    "h": 96.279,
    "s": 58.904,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50407,
    "c": 0.12927,
    "h": 135.6
  },
  "luminance": 0.13675
}

Semantic roles & 50–950 ramp

primary
#40741E
secondary
#8146A8
accent
#46E2A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40741E

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

Preview Lab → · Contrast checker → · Palette generator →

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