#40792C#40792C

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

Color values

HEX#40792C
RGBrgb(64, 121, 44)
HSLhsl(104, 47%, 32%)
HSVhsv(104, 64%, 47%)
CMYKcmyk(47.1%, 0%, 63.6%, 52.5%)
CIE-LABlab(45.56, -34.07, 35.63)
CIE-LCHlch(45.56, 49.30, 133.72°)
OKLaboklab(51.92% -0.0938 0.0831)
OKLCHoklch(51.92% 0.125 138.5)
XYZxyz(9.4060, 14.9460, 4.7716)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40792C #652C79
analogous
#66792C #40792C #2C793F
triadic
#40792C #2C4079 #792C40
tetradic
#40792C #2C6679 #652C79 #793F2C
square
#40792C #2C6679 #652C79 #793F2C
split-complementary
#40792C #3F2C79 #792C66
monochromatic
#111F0B #284C1C #40792C #58A63C #77C45C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40792C#FFFFFF#000000##FFFFFF
##40792C1.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)
#7D6F23
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#3C7569
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40792c;
/* rgb */ color: rgb(64, 121, 44);
/* oklch */ color: oklch(51.9% 0.125 138.5);
Tailwind
colors: {
  custom: {
    50: '#7aa068',
    500: '#40792c',
    950: '#000000',
  },
}
SCSS
$custom: #40792c;
$custom-light: #7aa068;
$custom-dark: #000000;
JSON
{
  "hex": "#40792c",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 44
  },
  "hsl": {
    "h": 104.416,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51921,
    "c": 0.12528,
    "h": 138.5
  },
  "luminance": 0.14947
}

Semantic roles & 50–950 ramp

primary
#40792C
secondary
#9457AA
accent
#51D6B4
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #40792C

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

Preview Lab → · Contrast checker → · Palette generator →

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