#40702F#40702F

#40702F is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.5% C 0.109 H 138.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#40702F
RGBrgb(64, 112, 47)
HSLhsl(104, 41%, 31%)
HSVhsv(104, 58%, 44%)
CMYKcmyk(42.9%, 0%, 58%, 56.1%)
CIE-LABlab(42.59, -29.62, 30.70)
CIE-LCHlch(42.59, 42.66, 133.98°)
OKLaboklab(49.5% -0.0814 0.0728)
OKLCHoklch(49.5% 0.109 138.2)
XYZxyz(8.4213, 12.8831, 4.7317)
Luminance0.1288 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40702F #5F2F70
analogous
#60702F #40702F #2F703E
triadic
#40702F #2F4070 #702F40
tetradic
#40702F #2F6070 #5F2F70 #703E2F
square
#40702F #2F6070 #5F2F70 #703E2F
split-complementary
#40702F #3E2F70 #702F60
monochromatic
#0F1A0B #27451D #40702F #599B41 #76BB5E

Accessibility & contrast

On white

5.87
#40702F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#40702F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40702F
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40702F#FFFFFF#000000##FFFFFF
##40702F1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736729
Deuteranopia (green-blind)
#6D6334
Tritanopia (blue-blind)
#3D6C62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40702f;
/* rgb */ color: rgb(64, 112, 47);
/* oklch */ color: oklch(49.5% 0.109 138.2);
Tailwind
colors: {
  custom: {
    50: '#789969',
    500: '#40702f',
    950: '#000000',
  },
}
SCSS
$custom: #40702f;
$custom-light: #789969;
$custom-dark: #000000;
JSON
{
  "hex": "#40702f",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 47
  },
  "hsl": {
    "h": 104.308,
    "s": 40.881,
    "l": 31.176
  },
  "oklch": {
    "l": 0.49499,
    "c": 0.1092,
    "h": 138.2
  },
  "luminance": 0.12884
}

Semantic roles & 50–950 ramp

primary
#40702F
secondary
#8F5AA1
accent
#57D1B1
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #40702F

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

Preview Lab → · Contrast checker → · Palette generator →

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