#40812E#40812E

#40812E is a mid, vivid green. Relative luminance 0.170; OKLCH L 54.1% C 0.135 H 139.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#40812E
RGBrgb(64, 129, 46)
HSLhsl(107, 47%, 34%)
HSVhsv(107, 64%, 51%)
CMYKcmyk(50.4%, 0%, 64.3%, 49.4%)
CIE-LABlab(48.24, -37.33, 37.69)
CIE-LCHlch(48.24, 53.04, 134.72°)
OKLaboklab(54.13% -0.1025 0.0877)
OKLCHoklch(54.13% 0.135 139.5)
XYZxyz(10.4573, 16.9870, 5.3120)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40812E #6F2E81
analogous
#6A812E #40812E #2E8146
triadic
#40812E #2E4081 #812E40
tetradic
#40812E #2E6A81 #6F2E81 #81462E
square
#40812E #2E6A81 #6F2E81 #81462E
split-complementary
#40812E #462E81 #812E6A
monochromatic
#13270E #2A541E #40812E #56AE3E #78C762

Accessibility & contrast

On white

4.78
#40812E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#40812E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40812E
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40812E#FFFFFF#000000##FFFFFF
##40812E1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857624
Deuteranopia (green-blind)
#7C7035
Tritanopia (blue-blind)
#3A7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40812e;
/* rgb */ color: rgb(64, 129, 46);
/* oklch */ color: oklch(54.1% 0.135 139.5);
Tailwind
colors: {
  custom: {
    50: '#7ba66a',
    500: '#40812e',
    950: '#000000',
  },
}
SCSS
$custom: #40812e;
$custom-light: #7ba66a;
$custom-dark: #000000;
JSON
{
  "hex": "#40812e",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 106.988,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54129,
    "c": 0.13488,
    "h": 139.5
  },
  "luminance": 0.16988
}

Semantic roles & 50–950 ramp

primary
#40812E
secondary
#9C5DAE
accent
#51D7BA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #40812E

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

Preview Lab → · Contrast checker → · Palette generator →

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