#40802E#40802E

#40802E is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.9% C 0.133 H 139.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#40802E
RGBrgb(64, 128, 46)
HSLhsl(107, 47%, 34%)
HSVhsv(107, 64%, 50%)
CMYKcmyk(50%, 0%, 64.1%, 49.8%)
CIE-LABlab(47.91, -36.90, 37.31)
CIE-LCHlch(47.91, 52.48, 134.68°)
OKLaboklab(53.86% -0.1013 0.0869)
OKLCHoklch(53.86% 0.133 139.4)
XYZxyz(10.3263, 16.7249, 5.2683)
Luminance0.1673 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40802E #6E2E80
analogous
#69802E #40802E #2E8045
triadic
#40802E #2E4080 #802E40
tetradic
#40802E #2E6980 #6E2E80 #80452E
square
#40802E #2E6980 #6E2E80 #80452E
split-complementary
#40802E #452E80 #802E69
monochromatic
#13260E #29531E #40802E #57AD3E #78C762

Accessibility & contrast

On white

4.83
#40802E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#40802E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40802E
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40802E#FFFFFF#000000##FFFFFF
##40802E1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847525
Deuteranopia (green-blind)
#7B7035
Tritanopia (blue-blind)
#3A7C6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40802e;
/* rgb */ color: rgb(64, 128, 46);
/* oklch */ color: oklch(53.9% 0.133 139.4);
Tailwind
colors: {
  custom: {
    50: '#7ba56a',
    500: '#40802e',
    950: '#000000',
  },
}
SCSS
$custom: #40802e;
$custom-light: #7ba56a;
$custom-dark: #000000;
JSON
{
  "hex": "#40802e",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 106.829,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.53856,
    "c": 0.13348,
    "h": 139.4
  },
  "luminance": 0.16726
}

Semantic roles & 50–950 ramp

primary
#40802E
secondary
#9B5DAD
accent
#51D7B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #40802E

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

Preview Lab → · Contrast checker → · Palette generator →

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