#40812F#40812F

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

Color values

HEX#40812F
RGBrgb(64, 129, 47)
HSLhsl(108, 47%, 35%)
HSVhsv(108, 64%, 51%)
CMYKcmyk(50.4%, 0%, 63.6%, 49.4%)
CIE-LABlab(48.25, -37.22, 37.22)
CIE-LCHlch(48.25, 52.64, 134.99°)
OKLaboklab(54.14% -0.1021 0.0868)
OKLCHoklch(54.14% 0.134 139.6)
XYZxyz(10.4773, 16.9950, 5.4170)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40812F #702F81
analogous
#69812F #40812F #2F8147
triadic
#40812F #2F4081 #812F40
tetradic
#40812F #2F6981 #702F81 #81472F
square
#40812F #2F6981 #702F81 #81472F
split-complementary
#40812F #472F81 #812F69
monochromatic
#13270E #2A541F #40812F #56AE3F #78C664

Accessibility & contrast

On white

4.77
#40812F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40812F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40812F#FFFFFF#000000##FFFFFF
##40812F1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#7C7036
Tritanopia (blue-blind)
#3A7D70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40812f;
/* rgb */ color: rgb(64, 129, 47);
/* oklch */ color: oklch(54.1% 0.134 139.6);
Tailwind
colors: {
  custom: {
    50: '#7ba66b',
    500: '#40812f',
    950: '#000000',
  },
}
SCSS
$custom: #40812f;
$custom-light: #7ba66b;
$custom-dark: #000000;
JSON
{
  "hex": "#40812f",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 107.561,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54141,
    "c": 0.13403,
    "h": 139.6
  },
  "luminance": 0.16996
}

Semantic roles & 50–950 ramp

primary
#40812F
secondary
#9D5EAD
accent
#52D6BB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #40812F

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

Preview Lab → · Contrast checker → · Palette generator →

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