#40841E#40841E

#40841E is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.8% C 0.150 H 137.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#40841E
RGBrgb(64, 132, 30)
HSLhsl(100, 63%, 32%)
HSVhsv(100, 77%, 52%)
CMYKcmyk(51.5%, 0%, 77.3%, 48.2%)
CIE-LABlab(49.11, -39.99, 45.32)
CIE-LCHlch(49.11, 60.44, 131.42°)
OKLaboklab(54.8% -0.1108 0.1016)
OKLCHoklch(54.8% 0.15 137.5)
XYZxyz(10.5996, 17.6855, 4.0831)
Luminance0.1769 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40841E #621E84
analogous
#73841E #40841E #1E842F
triadic
#40841E #1E4084 #841E40
tetradic
#40841E #1E7384 #621E84 #842F1E
square
#40841E #1E7384 #621E84 #842F1E
split-complementary
#40841E #2F1E84 #841E73
monochromatic
#102007 #285213 #40841E #58B629 #77D547

Accessibility & contrast

On white

4.63
#40841E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#40841E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #40841E
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40841E#FFFFFF#000000##FFFFFF
##40841E1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887808
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#3B7F71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40841e;
/* rgb */ color: rgb(64, 132, 30);
/* oklch */ color: oklch(54.8% 0.150 137.5);
Tailwind
colors: {
  custom: {
    50: '#7ca862',
    500: '#40841e',
    950: '#000000',
  },
}
SCSS
$custom: #40841e;
$custom-light: #7ca862;
$custom-dark: #000000;
JSON
{
  "hex": "#40841e",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 30
  },
  "hsl": {
    "h": 100,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54802,
    "c": 0.15032,
    "h": 137.5
  },
  "luminance": 0.17686
}

Semantic roles & 50–950 ramp

primary
#40841E
secondary
#9247B7
accent
#42E6AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40841E

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

Preview Lab → · Contrast checker → · Palette generator →

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