#408C1C#408C1C

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

Color values

HEX#408C1C
RGBrgb(64, 140, 28)
HSLhsl(101, 67%, 33%)
HSVhsv(101, 80%, 55%)
CMYKcmyk(54.3%, 0%, 80%, 45.1%)
CIE-LABlab(51.76, -43.32, 48.56)
CIE-LCHlch(51.76, 65.08, 131.73°)
OKLaboklab(56.98% -0.1199 0.1081)
OKLCHoklch(56.98% 0.161 138)
XYZxyz(11.7016, 19.9291, 4.3285)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C1C #681C8C
analogous
#788C1C #408C1C #1C8C30
triadic
#408C1C #1C408C #8C1C40
tetradic
#408C1C #1C788C #681C8C #8C301C
square
#408C1C #1C788C #681C8C #8C301C
split-complementary
#408C1C #301C8C #8C1C78
monochromatic
#112608 #295912 #408C1C #57BF26 #77DA48

Accessibility & contrast

On white

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

On black

4.99
#408C1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C1C
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C1C#FFFFFF#000000##000000
##408C1C1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408c1c;
/* rgb */ color: rgb(64, 140, 28);
/* oklch */ color: oklch(57.0% 0.161 138.0);
Tailwind
colors: {
  custom: {
    50: '#7dae62',
    500: '#408c1c',
    950: '#000000',
  },
}
SCSS
$custom: #408c1c;
$custom-light: #7dae62;
$custom-dark: #000000;
JSON
{
  "hex": "#408c1c",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 100.714,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56976,
    "c": 0.16141,
    "h": 138
  },
  "luminance": 0.1993
}

Semantic roles & 50–950 ramp

primary
#408C1C
secondary
#9748BC
accent
#3EEAB2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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