#40792F#40792F

#40792F is a mid, vivid green. Relative luminance 0.150; OKLCH L 52.0% C 0.123 H 139.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#40792F
RGBrgb(64, 121, 47)
HSLhsl(106, 44%, 33%)
HSVhsv(106, 61%, 47%)
CMYKcmyk(47.1%, 0%, 61.2%, 52.5%)
CIE-LABlab(45.59, -33.73, 34.20)
CIE-LCHlch(45.59, 48.03, 134.61°)
OKLaboklab(51.96% -0.0926 0.0803)
OKLCHoklch(51.96% 0.123 139.1)
XYZxyz(9.4645, 14.9694, 5.0794)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40792F #682F79
analogous
#65792F #40792F #2F7943
triadic
#40792F #2F4079 #792F40
tetradic
#40792F #2F6579 #682F79 #79432F
square
#40792F #2F6579 #682F79 #79432F
split-complementary
#40792F #432F79 #792F65
monochromatic
#11210D #294D1E #40792F #57A540 #77C261

Accessibility & contrast

On white

5.26
#40792F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#40792F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40792F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40792F#FFFFFF#000000##FFFFFF
##40792F1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F27
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#3C7569
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40792f;
/* rgb */ color: rgb(64, 121, 47);
/* oklch */ color: oklch(52.0% 0.123 139.1);
Tailwind
colors: {
  custom: {
    50: '#79a06a',
    500: '#40792f',
    950: '#000000',
  },
}
SCSS
$custom: #40792f;
$custom-light: #79a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#40792f",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 106.216,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51958,
    "c": 0.12262,
    "h": 139.1
  },
  "luminance": 0.1497
}

Semantic roles & 50–950 ramp

primary
#40792F
secondary
#975BA8
accent
#54D4B6
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F07
muted
#7B7E7A

Preview Lab

Preview with #40792F

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

Preview Lab → · Contrast checker → · Palette generator →

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