#40702D#40702D

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

Color values

HEX#40702D
RGBrgb(64, 112, 45)
HSLhsl(103, 43%, 31%)
HSVhsv(103, 60%, 44%)
CMYKcmyk(42.9%, 0%, 59.8%, 56.1%)
CIE-LABlab(42.56, -29.87, 31.70)
CIE-LCHlch(42.56, 43.55, 133.30°)
OKLaboklab(49.47% -0.0822 0.0747)
OKLCHoklch(49.47% 0.111 137.7)
XYZxyz(8.3819, 12.8673, 4.5241)
Luminance0.1287 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40702D #5D2D70
analogous
#61702D #40702D #2D703B
triadic
#40702D #2D4070 #702D40
tetradic
#40702D #2D6170 #5D2D70 #703B2D
square
#40702D #2D6170 #5D2D70 #703B2D
split-complementary
#40702D #3B2D70 #702D61
monochromatic
#0E190A #27441B #40702D #599C3F #76BD5A

Accessibility & contrast

On white

5.88
#40702D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#40702D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40702D
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40702D#FFFFFF#000000##FFFFFF
##40702D1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736726
Deuteranopia (green-blind)
#6D6332
Tritanopia (blue-blind)
#3D6C61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #40702d;
/* rgb */ color: rgb(64, 112, 45);
/* oklch */ color: oklch(49.5% 0.111 137.7);
Tailwind
colors: {
  custom: {
    50: '#789968',
    500: '#40702d',
    950: '#000000',
  },
}
SCSS
$custom: #40702d;
$custom-light: #789968;
$custom-dark: #000000;
JSON
{
  "hex": "#40702d",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 45
  },
  "hsl": {
    "h": 102.985,
    "s": 42.675,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49472,
    "c": 0.11114,
    "h": 137.7
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#40702D
secondary
#8C57A2
accent
#55D2AF
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #40702D

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

Preview Lab → · Contrast checker → · Palette generator →

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