#40792B#40792B

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

Color values

HEX#40792B
RGBrgb(64, 121, 43)
HSLhsl(104, 48%, 32%)
HSVhsv(104, 64%, 47%)
CMYKcmyk(47.1%, 0%, 64.5%, 52.5%)
CIE-LABlab(45.55, -34.18, 36.09)
CIE-LCHlch(45.55, 49.71, 133.44°)
OKLaboklab(51.91% -0.0941 0.084)
OKLCHoklch(51.91% 0.126 138.3)
XYZxyz(9.3875, 14.9386, 4.6738)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40792B #642B79
analogous
#67792B #40792B #2B793D
triadic
#40792B #2B4079 #792B40
tetradic
#40792B #2B6779 #642B79 #793D2B
square
#40792B #2B6779 #642B79 #793D2B
split-complementary
#40792B #3D2B79 #792B67
monochromatic
#101F0B #284C1B #40792B #58A63B #77C45A

Accessibility & contrast

On white

5.27
#40792B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40792B
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40792B#FFFFFF#000000##FFFFFF
##40792B1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F22
Deuteranopia (green-blind)
#756A31
Tritanopia (blue-blind)
#3C7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40792b;
/* rgb */ color: rgb(64, 121, 43);
/* oklch */ color: oklch(51.9% 0.126 138.3);
Tailwind
colors: {
  custom: {
    50: '#7aa068',
    500: '#40792b',
    950: '#000000',
  },
}
SCSS
$custom: #40792b;
$custom-light: #7aa068;
$custom-dark: #000000;
JSON
{
  "hex": "#40792b",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 103.846,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5191,
    "c": 0.12614,
    "h": 138.3
  },
  "luminance": 0.14939
}

Semantic roles & 50–950 ramp

primary
#40792B
secondary
#9356AA
accent
#51D7B3
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #40792B

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

Preview Lab → · Contrast checker → · Palette generator →

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