#408D1C#408D1C

#408D1C is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.163 H 138.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#408D1C
RGBrgb(64, 141, 28)
HSLhsl(101, 67%, 33%)
HSVhsv(101, 80%, 55%)
CMYKcmyk(54.6%, 0%, 80.1%, 44.7%)
CIE-LABlab(52.09, -43.71, 48.88)
CIE-LCHlch(52.09, 65.57, 131.81°)
OKLaboklab(57.25% -0.1209 0.1087)
OKLCHoklch(57.25% 0.163 138)
XYZxyz(11.8484, 20.2227, 4.3774)
Luminance0.2022 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D1C #691C8D
analogous
#788D1C #408D1C #1C8D30
triadic
#408D1C #1C408D #8D1C40
tetradic
#408D1C #1C788D #691C8D #8D301C
square
#408D1C #1C788D #691C8D #8D301C
split-complementary
#408D1C #301C8D #8D1C78
monochromatic
#122708 #295A12 #408D1C #57C026 #77DB49

Accessibility & contrast

On white

4.16
#408D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#408D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D1C
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D1C#FFFFFF#000000##000000
##408D1C1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d1c;
/* rgb */ color: rgb(64, 141, 28);
/* oklch */ color: oklch(57.2% 0.163 138.0);
Tailwind
colors: {
  custom: {
    50: '#7eaf62',
    500: '#408d1c',
    950: '#000000',
  },
}
SCSS
$custom: #408d1c;
$custom-light: #7eaf62;
$custom-dark: #000000;
JSON
{
  "hex": "#408d1c",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 100.885,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57249,
    "c": 0.16262,
    "h": 138
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

primary
#408D1C
secondary
#9848BD
accent
#3EEAB3
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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