#40741C#40741C

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

Color values

HEX#40741C
RGBrgb(64, 116, 28)
HSLhsl(95, 61%, 28%)
HSVhsv(95, 76%, 45%)
CMYKcmyk(44.8%, 0%, 75.9%, 54.5%)
CIE-LABlab(43.75, -33.33, 40.76)
CIE-LCHlch(43.75, 52.65, 129.28°)
OKLaboklab(50.39% -0.093 0.0917)
OKLCHoklch(50.39% 0.131 135.4)
XYZxyz(8.5691, 13.6641, 3.2843)
Luminance0.1366 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40741C #501C74
analogous
#6C741C #40741C #1C7424
triadic
#40741C #1C4074 #741C40
tetradic
#40741C #1C6C74 #501C74 #74241C
square
#40741C #1C6C74 #501C74 #74241C
split-complementary
#40741C #241C74 #741C6C
monochromatic
#0E1906 #254310 #40741C #5BA528 #78D03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40741C#FFFFFF#000000##FFFFFF
##40741C1.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)
#786A0C
Deuteranopia (green-blind)
#716625
Tritanopia (blue-blind)
#3E6F63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40741c;
/* rgb */ color: rgb(64, 116, 28);
/* oklch */ color: oklch(50.4% 0.131 135.4);
Tailwind
colors: {
  custom: {
    50: '#7a9c5f',
    500: '#40741c',
    950: '#000000',
  },
}
SCSS
$custom: #40741c;
$custom-light: #7a9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40741c",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 28
  },
  "hsl": {
    "h": 95.455,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50391,
    "c": 0.13062,
    "h": 135.4
  },
  "luminance": 0.13665
}

Semantic roles & 50–950 ramp

primary
#40741C
secondary
#7F43A8
accent
#44E4A3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40741C

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

Preview Lab → · Contrast checker → · Palette generator →

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