#40781E#40781E

#40781E is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.5% C 0.135 H 136.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#40781E
RGBrgb(64, 120, 30)
HSLhsl(97, 60%, 29%)
HSVhsv(97, 75%, 47%)
CMYKcmyk(46.7%, 0%, 75%, 52.9%)
CIE-LABlab(45.10, -34.94, 41.33)
CIE-LCHlch(45.10, 54.12, 130.21°)
OKLaboklab(51.51% -0.0972 0.0933)
OKLCHoklch(51.51% 0.135 136.2)
XYZxyz(9.0649, 14.6161, 3.5716)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40781E #561E78
analogous
#6D781E #40781E #1E7829
triadic
#40781E #1E4078 #781E40
tetradic
#40781E #1E6D78 #561E78 #78291E
square
#40781E #1E6D78 #561E78 #78291E
split-complementary
#40781E #291E78 #781E6D
monochromatic
#0D1806 #264712 #40781E #5AA92A #77CF41

Accessibility & contrast

On white

5.35
#40781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#40781E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40781E
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40781E#FFFFFF#000000##FFFFFF
##40781E1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E0E
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #40781e;
/* rgb */ color: rgb(64, 120, 30);
/* oklch */ color: oklch(51.5% 0.135 136.2);
Tailwind
colors: {
  custom: {
    50: '#7a9f60',
    500: '#40781e',
    950: '#000000',
  },
}
SCSS
$custom: #40781e;
$custom-light: #7a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#40781e",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 97.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51508,
    "c": 0.13468,
    "h": 136.2
  },
  "luminance": 0.14617
}

Semantic roles & 50–950 ramp

primary
#40781E
secondary
#8546AC
accent
#45E3A7
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40781E

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

Preview Lab → · Contrast checker → · Palette generator →

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