#40712F#40712F

#40712F is a mid, moderate green. Relative luminance 0.131; OKLCH L 49.8% C 0.111 H 138.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#40712F
RGBrgb(64, 113, 47)
HSLhsl(105, 41%, 31%)
HSVhsv(105, 58%, 44%)
CMYKcmyk(43.4%, 0%, 58.4%, 55.7%)
CIE-LABlab(42.92, -30.09, 31.09)
CIE-LCHlch(42.92, 43.27, 134.06°)
OKLaboklab(49.77% -0.0827 0.0736)
OKLCHoklch(49.77% 0.111 138.3)
XYZxyz(8.5323, 13.1050, 4.7687)
Luminance0.1310 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40712F #602F71
analogous
#61712F #40712F #2F713F
triadic
#40712F #2F4071 #712F40
tetradic
#40712F #2F6171 #602F71 #713F2F
square
#40712F #2F6171 #602F71 #713F2F
split-complementary
#40712F #3F2F71 #712F61
monochromatic
#0F1B0B #28461D #40712F #589C41 #76BC5E

Accessibility & contrast

On white

5.80
#40712F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#40712F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40712F
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40712F#FFFFFF#000000##FFFFFF
##40712F1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746829
Deuteranopia (green-blind)
#6E6434
Tritanopia (blue-blind)
#3D6D62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40712f;
/* rgb */ color: rgb(64, 113, 47);
/* oklch */ color: oklch(49.8% 0.111 138.3);
Tailwind
colors: {
  custom: {
    50: '#789a6a',
    500: '#40712f',
    950: '#000000',
  },
}
SCSS
$custom: #40712f;
$custom-light: #789a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40712f",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 47
  },
  "hsl": {
    "h": 104.545,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.11072,
    "h": 138.3
  },
  "luminance": 0.13105
}

Semantic roles & 50–950 ramp

primary
#40712F
secondary
#905AA2
accent
#57D1B2
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #40712F

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

Preview Lab → · Contrast checker → · Palette generator →

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