#40792A#40792A

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

Color values

HEX#40792A
RGBrgb(64, 121, 42)
HSLhsl(103, 48%, 32%)
HSVhsv(103, 65%, 47%)
CMYKcmyk(47.1%, 0%, 65.3%, 52.5%)
CIE-LABlab(45.54, -34.29, 36.56)
CIE-LCHlch(45.54, 50.12, 133.16°)
OKLaboklab(51.9% -0.0945 0.0848)
OKLCHoklch(51.9% 0.127 138.1)
XYZxyz(9.3693, 14.9313, 4.5784)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40792A #632A79
analogous
#68792A #40792A #2A793C
triadic
#40792A #2A4079 #792A40
tetradic
#40792A #2A6879 #632A79 #793C2A
square
#40792A #2A6879 #632A79 #793C2A
split-complementary
#40792A #3C2A79 #792A68
monochromatic
#101E0A #284C1A #40792A #58A63A #77C558

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40792A#FFFFFF#000000##FFFFFF
##40792A1.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)
#7D6F21
Deuteranopia (green-blind)
#756A30
Tritanopia (blue-blind)
#3C7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40792a;
/* rgb */ color: rgb(64, 121, 42);
/* oklch */ color: oklch(51.9% 0.127 138.1);
Tailwind
colors: {
  custom: {
    50: '#7aa067',
    500: '#40792a',
    950: '#000000',
  },
}
SCSS
$custom: #40792a;
$custom-light: #7aa067;
$custom-dark: #000000;
JSON
{
  "hex": "#40792a",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 42
  },
  "hsl": {
    "h": 103.291,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51898,
    "c": 0.12699,
    "h": 138.1
  },
  "luminance": 0.14932
}

Semantic roles & 50–950 ramp

primary
#40792A
secondary
#9354AB
accent
#50D8B2
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #40792A

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

Preview Lab → · Contrast checker → · Palette generator →

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