#408C1A#408C1A

#408C1A is a mid, vivid green. Relative luminance 0.199; OKLCH L 57.0% C 0.162 H 137.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#408C1A
RGBrgb(64, 140, 26)
HSLhsl(100, 69%, 33%)
HSVhsv(100, 81%, 55%)
CMYKcmyk(54.3%, 0%, 81.4%, 45.1%)
CIE-LABlab(51.75, -43.44, 49.19)
CIE-LCHlch(51.75, 65.63, 131.45°)
OKLaboklab(56.96% -0.1203 0.1091)
OKLCHoklch(56.96% 0.162 137.8)
XYZxyz(11.6785, 19.9198, 4.2066)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C1A #661A8C
analogous
#798C1A #408C1A #1A8C2D
triadic
#408C1A #1A408C #8C1A40
tetradic
#408C1A #1A798C #661A8C #8C2D1A
square
#408C1A #1A798C #661A8C #8C2D1A
split-complementary
#408C1A #2D1A8C #8C1A79
monochromatic
#112507 #285810 #408C1A #58C024 #77DC44

Accessibility & contrast

On white

4.21
#408C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#408C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C1A
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C1A#FFFFFF#000000##000000
##408C1A1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c1a;
/* rgb */ color: rgb(64, 140, 26);
/* oklch */ color: oklch(57.0% 0.162 137.8);
Tailwind
colors: {
  custom: {
    50: '#7dae61',
    500: '#408c1a',
    950: '#000000',
  },
}
SCSS
$custom: #408c1a;
$custom-light: #7dae61;
$custom-dark: #000000;
JSON
{
  "hex": "#408c1a",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 100,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56964,
    "c": 0.16241,
    "h": 137.8
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#408C1A
secondary
#9544BE
accent
#3CECB1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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