#408E1C#408E1C

#408E1C is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.5% C 0.164 H 138.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#408E1C
RGBrgb(64, 142, 28)
HSLhsl(101, 67%, 33%)
HSVhsv(101, 80%, 56%)
CMYKcmyk(54.9%, 0%, 80.3%, 44.3%)
CIE-LABlab(52.42, -44.10, 49.19)
CIE-LCHlch(52.42, 66.07, 131.88°)
OKLaboklab(57.52% -0.122 0.1094)
OKLCHoklch(57.52% 0.164 138.1)
XYZxyz(11.9965, 20.5189, 4.4268)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E1C #6A1C8E
analogous
#798E1C #408E1C #1C8E31
triadic
#408E1C #1C408E #8E1C40
tetradic
#408E1C #1C798E #6A1C8E #8E311C
square
#408E1C #1C798E #6A1C8E #8E311C
split-complementary
#408E1C #311C8E #8E1C79
monochromatic
#122808 #295B12 #408E1C #57C126 #77DB49

Accessibility & contrast

On white

4.11
#408E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#408E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E1C
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E1C#FFFFFF#000000##000000
##408E1C1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#897B29
Tritanopia (blue-blind)
#398979
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e1c;
/* rgb */ color: rgb(64, 142, 28);
/* oklch */ color: oklch(57.5% 0.164 138.1);
Tailwind
colors: {
  custom: {
    50: '#7eb062',
    500: '#408e1c',
    950: '#000000',
  },
}
SCSS
$custom: #408e1c;
$custom-light: #7eb062;
$custom-dark: #000000;
JSON
{
  "hex": "#408e1c",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 101.053,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57522,
    "c": 0.16385,
    "h": 138.1
  },
  "luminance": 0.2052
}

Semantic roles & 50–950 ramp

primary
#408E1C
secondary
#9849BD
accent
#3EEAB4
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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