#40781A#40781A

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

Color values

HEX#40781A
RGBrgb(64, 120, 26)
HSLhsl(96, 64%, 29%)
HSVhsv(96, 78%, 47%)
CMYKcmyk(46.7%, 0%, 78.3%, 52.9%)
CIE-LABlab(45.08, -35.22, 42.83)
CIE-LCHlch(45.08, 55.45, 129.44°)
OKLaboklab(51.48% -0.0982 0.0958)
OKLCHoklch(51.48% 0.137 135.7)
XYZxyz(9.0171, 14.5970, 3.3194)
Luminance0.1460 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40781A #521A78
analogous
#6F781A #40781A #1A7823
triadic
#40781A #1A4078 #781A40
tetradic
#40781A #1A6F78 #521A78 #78231A
square
#40781A #1A6F78 #521A78 #78231A
split-complementary
#40781A #231A78 #781A6F
monochromatic
#0D1905 #25460F #40781A #5BAA25 #77D438

Accessibility & contrast

On white

5.36
#40781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40781A
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40781A#FFFFFF#000000##FFFFFF
##40781A1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40781a;
/* rgb */ color: rgb(64, 120, 26);
/* oklch */ color: oklch(51.5% 0.137 135.7);
Tailwind
colors: {
  custom: {
    50: '#7a9f5e',
    500: '#40781a',
    950: '#000000',
  },
}
SCSS
$custom: #40781a;
$custom-light: #7a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40781a",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 95.745,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51478,
    "c": 0.13718,
    "h": 135.7
  },
  "luminance": 0.14598
}

Semantic roles & 50–950 ramp

primary
#40781A
secondary
#8141AC
accent
#40E7A4
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40781A

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

Preview Lab → · Contrast checker → · Palette generator →

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