#40781D#40781D

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

Color values

HEX#40781D
RGBrgb(64, 120, 29)
HSLhsl(97, 61%, 29%)
HSVhsv(97, 76%, 47%)
CMYKcmyk(46.7%, 0%, 75.8%, 52.9%)
CIE-LABlab(45.10, -35.01, 41.72)
CIE-LCHlch(45.10, 54.46, 130.01°)
OKLaboklab(51.5% -0.0974 0.0939)
OKLCHoklch(51.5% 0.135 136.1)
XYZxyz(9.0524, 14.6111, 3.5054)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40781D #551D78
analogous
#6E781D #40781D #1D7828
triadic
#40781D #1D4078 #781D40
tetradic
#40781D #1D6E78 #551D78 #78281D
square
#40781D #1D6E78 #551D78 #78281D
split-complementary
#40781D #281D78 #781D6E
monochromatic
#0D1906 #264711 #40781D #5AA929 #77D13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40781D#FFFFFF#000000##FFFFFF
##40781D1.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)
#7C6E0C
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #40781d;
/* rgb */ color: rgb(64, 120, 29);
/* oklch */ color: oklch(51.5% 0.135 136.1);
Tailwind
colors: {
  custom: {
    50: '#7a9f60',
    500: '#40781d',
    950: '#000000',
  },
}
SCSS
$custom: #40781d;
$custom-light: #7a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#40781d",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 96.923,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.515,
    "c": 0.13532,
    "h": 136.1
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#40781D
secondary
#8445AC
accent
#44E4A6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40781D

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

Preview Lab → · Contrast checker → · Palette generator →

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