#40740F#40740F

#40740F is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.3% C 0.138 H 134.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#40740F
RGBrgb(64, 116, 15)
HSLhsl(91, 77%, 26%)
HSVhsv(91, 87%, 45%)
CMYKcmyk(44.8%, 0%, 87.1%, 54.5%)
CIE-LABlab(43.68, -34.10, 45.04)
CIE-LCHlch(43.68, 56.49, 127.13°)
OKLaboklab(50.31% -0.0959 0.0987)
OKLCHoklch(50.31% 0.138 134.2)
XYZxyz(8.4458, 13.6148, 2.6347)
Luminance0.1361 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40740F #430F74
analogous
#72740F #40740F #0F7410
triadic
#40740F #0F4074 #740F40
tetradic
#40740F #0F7274 #430F74 #74100F
square
#40740F #0F7274 #430F74 #74100F
split-complementary
#40740F #100F74 #740F72
monochromatic
#0F1B04 #223E08 #40740F #5EAA16 #7CE01D

Accessibility & contrast

On white

5.64
#40740F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#40740F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40740F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40740F#FFFFFF#000000##FFFFFF
##40740F1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#72661C
Tritanopia (blue-blind)
#3F6F62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40740f;
/* rgb */ color: rgb(64, 116, 15);
/* oklch */ color: oklch(50.3% 0.138 134.2);
Tailwind
colors: {
  custom: {
    50: '#7a9c59',
    500: '#40740f',
    950: '#000000',
  },
}
SCSS
$custom: #40740f;
$custom-light: #7a9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#40740f",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 15
  },
  "hsl": {
    "h": 90.891,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.1376,
    "h": 134.2
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#40740F
secondary
#7133AC
accent
#34F497
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #40740F

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

Preview Lab → · Contrast checker → · Palette generator →

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