#40792D#40792D

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

Color values

HEX#40792D
RGBrgb(64, 121, 45)
HSLhsl(105, 46%, 33%)
HSVhsv(105, 63%, 47%)
CMYKcmyk(47.1%, 0%, 62.8%, 52.5%)
CIE-LABlab(45.57, -33.96, 35.15)
CIE-LCHlch(45.57, 48.88, 134.01°)
OKLaboklab(51.93% -0.0934 0.0822)
OKLCHoklch(51.93% 0.124 138.7)
XYZxyz(9.4250, 14.9536, 4.8718)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40792D #662D79
analogous
#66792D #40792D #2D7940
triadic
#40792D #2D4079 #792D40
tetradic
#40792D #2D6679 #662D79 #79402D
square
#40792D #2D6679 #662D79 #79402D
split-complementary
#40792D #402D79 #792D66
monochromatic
#11200C #284C1C #40792D #58A63E #77C35D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40792D#FFFFFF#000000##FFFFFF
##40792D1.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)
#7D6F25
Deuteranopia (green-blind)
#756A33
Tritanopia (blue-blind)
#3C7569
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40792d;
/* rgb */ color: rgb(64, 121, 45);
/* oklch */ color: oklch(51.9% 0.124 138.7);
Tailwind
colors: {
  custom: {
    50: '#7aa069',
    500: '#40792d',
    950: '#000000',
  },
}
SCSS
$custom: #40792d;
$custom-light: #7aa069;
$custom-dark: #000000;
JSON
{
  "hex": "#40792d",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 45
  },
  "hsl": {
    "h": 105,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51933,
    "c": 0.12441,
    "h": 138.7
  },
  "luminance": 0.14954
}

Semantic roles & 50–950 ramp

primary
#40792D
secondary
#9558A9
accent
#52D5B5
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #40792D

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

Preview Lab → · Contrast checker → · Palette generator →

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