#40781B#40781B

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

Color values

HEX#40781B
RGBrgb(64, 120, 27)
HSLhsl(96, 63%, 29%)
HSVhsv(96, 78%, 47%)
CMYKcmyk(46.7%, 0%, 77.5%, 52.9%)
CIE-LABlab(45.08, -35.15, 42.46)
CIE-LCHlch(45.08, 55.13, 129.62°)
OKLaboklab(51.49% -0.098 0.0952)
OKLCHoklch(51.49% 0.137 135.8)
XYZxyz(9.0284, 14.6015, 3.3793)
Luminance0.1460 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40781B #531B78
analogous
#6F781B #40781B #1B7825
triadic
#40781B #1B4078 #781B40
tetradic
#40781B #1B6F78 #531B78 #78251B
square
#40781B #1B6F78 #531B78 #78251B
split-complementary
#40781B #251B78 #781B6F
monochromatic
#0D1906 #254610 #40781B #5BAA26 #77D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40781B#FFFFFF#000000##FFFFFF
##40781B1.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)
#7C6E08
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #40781b;
/* rgb */ color: rgb(64, 120, 27);
/* oklch */ color: oklch(51.5% 0.137 135.8);
Tailwind
colors: {
  custom: {
    50: '#7a9f5f',
    500: '#40781b',
    950: '#000000',
  },
}
SCSS
$custom: #40781b;
$custom-light: #7a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40781b",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 96.129,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51485,
    "c": 0.13659,
    "h": 135.8
  },
  "luminance": 0.14602
}

Semantic roles & 50–950 ramp

primary
#40781B
secondary
#8243AC
accent
#41E6A5
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40781B

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

Preview Lab → · Contrast checker → · Palette generator →

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