#40791E#40791E

#40791E is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.8% C 0.136 H 136.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#40791E
RGBrgb(64, 121, 30)
HSLhsl(98, 60%, 30%)
HSVhsv(98, 75%, 47%)
CMYKcmyk(47.1%, 0%, 75.2%, 52.5%)
CIE-LABlab(45.44, -35.37, 41.67)
CIE-LCHlch(45.44, 54.65, 130.33°)
OKLaboklab(51.78% -0.0983 0.094)
OKLCHoklch(51.78% 0.136 136.3)
XYZxyz(9.1858, 14.8579, 3.6119)
Luminance0.1486 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40791E #571E79
analogous
#6E791E #40791E #1E7929
triadic
#40791E #1E4079 #791E40
tetradic
#40791E #1E6E79 #571E79 #79291E
square
#40791E #1E6E79 #571E79 #79291E
split-complementary
#40791E #291E79 #791E6E
monochromatic
#0D1906 #264812 #40791E #5AAA2A #77D041

Accessibility & contrast

On white

5.29
#40791E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#40791E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40791E
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40791E#FFFFFF#000000##FFFFFF
##40791E1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F0E
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#3D7467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40791e;
/* rgb */ color: rgb(64, 121, 30);
/* oklch */ color: oklch(51.8% 0.136 136.3);
Tailwind
colors: {
  custom: {
    50: '#7aa060',
    500: '#40791e',
    950: '#000000',
  },
}
SCSS
$custom: #40791e;
$custom-light: #7aa060;
$custom-dark: #000000;
JSON
{
  "hex": "#40791e",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 97.582,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51783,
    "c": 0.13601,
    "h": 136.3
  },
  "luminance": 0.14858
}

Semantic roles & 50–950 ramp

primary
#40791E
secondary
#8646AD
accent
#44E3A8
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #40791E

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

Preview Lab → · Contrast checker → · Palette generator →

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