#40741B#40741B

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

Color values

HEX#40741B
RGBrgb(64, 116, 27)
HSLhsl(95, 62%, 28%)
HSVhsv(95, 77%, 45%)
CMYKcmyk(44.8%, 0%, 76.7%, 54.5%)
CIE-LABlab(43.74, -33.40, 41.14)
CIE-LCHlch(43.74, 52.99, 129.08°)
OKLaboklab(50.38% -0.0932 0.0924)
OKLCHoklch(50.38% 0.131 135.3)
XYZxyz(8.5574, 13.6594, 3.2223)
Luminance0.1366 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40741B #4F1B74
analogous
#6C741B #40741B #1B7422
triadic
#40741B #1B4074 #741B40
tetradic
#40741B #1B6C74 #4F1B74 #74221B
square
#40741B #1B6C74 #4F1B74 #74221B
split-complementary
#40741B #221B74 #741B6C
monochromatic
#0E1906 #25420F #40741B #5BA627 #78D139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40741B#FFFFFF#000000##FFFFFF
##40741B1.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)
#786A0A
Deuteranopia (green-blind)
#716624
Tritanopia (blue-blind)
#3F6F63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40741b;
/* rgb */ color: rgb(64, 116, 27);
/* oklch */ color: oklch(50.4% 0.131 135.3);
Tailwind
colors: {
  custom: {
    50: '#7a9c5e',
    500: '#40741b',
    950: '#000000',
  },
}
SCSS
$custom: #40741b;
$custom-light: #7a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40741b",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 95.056,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50383,
    "c": 0.13127,
    "h": 135.3
  },
  "luminance": 0.1366
}

Semantic roles & 50–950 ramp

primary
#40741B
secondary
#7E42A9
accent
#42E5A2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40741B

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

Preview Lab → · Contrast checker → · Palette generator →

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