#408E2A#408E2A

#408E2A is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.6% C 0.155 H 139.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#408E2A
RGBrgb(64, 142, 42)
HSLhsl(107, 54%, 36%)
HSVhsv(107, 70%, 56%)
CMYKcmyk(54.9%, 0%, 70.4%, 44.3%)
CIE-LABlab(52.51, -43.06, 44.09)
CIE-LCHlch(52.51, 61.62, 134.32°)
OKLaboklab(57.63% -0.1183 0.1007)
OKLCHoklch(57.63% 0.155 139.6)
XYZxyz(12.2048, 20.6022, 5.5235)
Luminance0.2060 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E2A #782A8E
analogous
#728E2A #408E2A #2A8E46
triadic
#408E2A #2A408E #8E2A40
tetradic
#408E2A #2A728E #782A8E #8E462A
square
#408E2A #2A728E #782A8E #8E462A
split-complementary
#408E2A #462A8E #8E2A72
monochromatic
#15300E #2B5F1C #408E2A #55BD38 #7AD162

Accessibility & contrast

On white

4.10
#408E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#408E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E2A
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E2A#FFFFFF#000000##000000
##408E2A1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811B
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#38897A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e2a;
/* rgb */ color: rgb(64, 142, 42);
/* oklch */ color: oklch(57.6% 0.155 139.6);
Tailwind
colors: {
  custom: {
    50: '#7db069',
    500: '#408e2a',
    950: '#000000',
  },
}
SCSS
$custom: #408e2a;
$custom-light: #7db069;
$custom-dark: #000000;
JSON
{
  "hex": "#408e2a",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 106.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.57628,
    "c": 0.15535,
    "h": 139.6
  },
  "luminance": 0.20603
}

Semantic roles & 50–950 ramp

primary
#408E2A
secondary
#A35DB6
accent
#4ADEBD
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408E2A

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

Preview Lab → · Contrast checker → · Palette generator →

#408E2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva