#40712E#40712E

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

Color values

HEX#40712E
RGBrgb(64, 113, 46)
HSLhsl(104, 42%, 31%)
HSVhsv(104, 59%, 44%)
CMYKcmyk(43.4%, 0%, 59.3%, 55.7%)
CIE-LABlab(42.91, -30.21, 31.59)
CIE-LCHlch(42.91, 43.71, 133.72°)
OKLaboklab(49.76% -0.0831 0.0746)
OKLCHoklch(49.76% 0.112 138.1)
XYZxyz(8.5123, 13.0970, 4.6637)
Luminance0.1310 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40712E #5F2E71
analogous
#61712E #40712E #2E713D
triadic
#40712E #2E4071 #712E40
tetradic
#40712E #2E6171 #5F2E71 #713D2E
square
#40712E #2E6171 #5F2E71 #713D2E
split-complementary
#40712E #3D2E71 #712E61
monochromatic
#0F1A0B #27461C #40712E #599C40 #76BD5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40712E#FFFFFF#000000##FFFFFF
##40712E1.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)
#746827
Deuteranopia (green-blind)
#6E6433
Tritanopia (blue-blind)
#3D6D62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40712e;
/* rgb */ color: rgb(64, 113, 46);
/* oklch */ color: oklch(49.8% 0.112 138.1);
Tailwind
colors: {
  custom: {
    50: '#789a69',
    500: '#40712e',
    950: '#000000',
  },
}
SCSS
$custom: #40712e;
$custom-light: #789a69;
$custom-dark: #000000;
JSON
{
  "hex": "#40712e",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 46
  },
  "hsl": {
    "h": 103.881,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.49759,
    "c": 0.11169,
    "h": 138.1
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#40712E
secondary
#8F58A2
accent
#56D2B1
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #40712E

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

Preview Lab → · Contrast checker → · Palette generator →

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