#40760F#40760F

#40760F is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 50.9% C 0.140 H 134.5°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#40760F
RGBrgb(64, 118, 15)
HSLhsl(91, 77%, 26%)
HSVhsv(91, 87%, 46%)
CMYKcmyk(45.8%, 0%, 87.3%, 53.7%)
CIE-LABlab(44.35, -34.97, 45.64)
CIE-LCHlch(44.35, 57.50, 127.46°)
OKLaboklab(50.86% -0.0982 0.0999)
OKLCHoklch(50.86% 0.14 134.5)
XYZxyz(8.6788, 14.0808, 2.7124)
Luminance0.1408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40760F #450F76
analogous
#73760F #40760F #0F7611
triadic
#40760F #0F4076 #760F40
tetradic
#40760F #0F7376 #450F76 #76110F
square
#40760F #0F7376 #450F76 #76110F
split-complementary
#40760F #110F76 #760F73
monochromatic
#0F1B03 #234008 #40760F #5DAC16 #7BE21D

Accessibility & contrast

On white

5.50
#40760F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#40760F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40760F
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40760F#FFFFFF#000000##FFFFFF
##40760F1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#74671C
Tritanopia (blue-blind)
#3F7164
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #40760f;
/* rgb */ color: rgb(64, 118, 15);
/* oklch */ color: oklch(50.9% 0.140 134.5);
Tailwind
colors: {
  custom: {
    50: '#7b9e59',
    500: '#40760f',
    950: '#000000',
  },
}
SCSS
$custom: #40760f;
$custom-light: #7b9e59;
$custom-dark: #000000;
JSON
{
  "hex": "#40760f",
  "rgb": {
    "r": 64,
    "g": 118,
    "b": 15
  },
  "hsl": {
    "h": 91.456,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50862,
    "c": 0.14013,
    "h": 134.5
  },
  "luminance": 0.14081
}

Semantic roles & 50–950 ramp

primary
#40760F
secondary
#7333AD
accent
#34F499
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #40760F

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

Preview Lab → · Contrast checker → · Palette generator →

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