#40792E#40792E

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

Color values

HEX#40792E
RGBrgb(64, 121, 46)
HSLhsl(106, 45%, 33%)
HSVhsv(106, 62%, 47%)
CMYKcmyk(47.1%, 0%, 62%, 52.5%)
CIE-LABlab(45.58, -33.85, 34.68)
CIE-LCHlch(45.58, 48.46, 134.31°)
OKLaboklab(51.94% -0.093 0.0813)
OKLCHoklch(51.94% 0.124 138.9)
XYZxyz(9.4445, 14.9614, 4.9744)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40792E #672E79
analogous
#65792E #40792E #2E7941
triadic
#40792E #2E4079 #792E40
tetradic
#40792E #2E6579 #672E79 #79412E
square
#40792E #2E6579 #672E79 #79412E
split-complementary
#40792E #412E79 #792E65
monochromatic
#11200C #294D1D #40792E #57A53F #77C25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40792E#FFFFFF#000000##FFFFFF
##40792E1.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)
#7D6F26
Deuteranopia (green-blind)
#756A34
Tritanopia (blue-blind)
#3C7569
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40792e;
/* rgb */ color: rgb(64, 121, 46);
/* oklch */ color: oklch(51.9% 0.124 138.9);
Tailwind
colors: {
  custom: {
    50: '#7aa06a',
    500: '#40792e',
    950: '#000000',
  },
}
SCSS
$custom: #40792e;
$custom-light: #7aa06a;
$custom-dark: #000000;
JSON
{
  "hex": "#40792e",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 46
  },
  "hsl": {
    "h": 105.6,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.51945,
    "c": 0.12352,
    "h": 138.9
  },
  "luminance": 0.14962
}

Semantic roles & 50–950 ramp

primary
#40792E
secondary
#965AA9
accent
#53D5B6
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #40792E

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

Preview Lab → · Contrast checker → · Palette generator →

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