#40842E#40842E

#40842E is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.9% C 0.139 H 139.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#40842E
RGBrgb(64, 132, 46)
HSLhsl(107, 48%, 35%)
HSVhsv(107, 65%, 52%)
CMYKcmyk(51.5%, 0%, 65.2%, 48.2%)
CIE-LABlab(49.24, -38.59, 38.79)
CIE-LCHlch(49.24, 54.72, 134.85°)
OKLaboklab(54.95% -0.1059 0.09)
OKLCHoklch(54.95% 0.139 139.6)
XYZxyz(10.8583, 17.7890, 5.4457)
Luminance0.1779 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40842E #722E84
analogous
#6B842E #40842E #2E8447
triadic
#40842E #2E4084 #842E40
tetradic
#40842E #2E6B84 #722E84 #84472E
square
#40842E #2E6B84 #722E84 #84472E
split-complementary
#40842E #472E84 #842E6B
monochromatic
#14290E #2A571E #40842E #56B13E #79C964

Accessibility & contrast

On white

4.61
#40842E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#40842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #40842E
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40842E#FFFFFF#000000##FFFFFF
##40842E1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887924
Deuteranopia (green-blind)
#7F7335
Tritanopia (blue-blind)
#3A8072
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40842e;
/* rgb */ color: rgb(64, 132, 46);
/* oklch */ color: oklch(54.9% 0.139 139.6);
Tailwind
colors: {
  custom: {
    50: '#7ba86b',
    500: '#40842e',
    950: '#000000',
  },
}
SCSS
$custom: #40842e;
$custom-light: #7ba86b;
$custom-dark: #000000;
JSON
{
  "hex": "#40842e",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 107.442,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.54947,
    "c": 0.13903,
    "h": 139.6
  },
  "luminance": 0.1779
}

Semantic roles & 50–950 ramp

primary
#40842E
secondary
#9F5EB0
accent
#50D8BB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #40842E

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

Preview Lab → · Contrast checker → · Palette generator →

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