#408A1C#408A1C

#408A1C is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.159 H 137.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#408A1C
RGBrgb(64, 138, 28)
HSLhsl(100, 66%, 33%)
HSVhsv(100, 80%, 54%)
CMYKcmyk(53.6%, 0%, 79.7%, 45.9%)
CIE-LABlab(51.09, -42.53, 47.93)
CIE-LCHlch(51.09, 64.08, 131.58°)
OKLaboklab(56.43% -0.1178 0.1068)
OKLCHoklch(56.43% 0.159 137.8)
XYZxyz(11.4120, 19.3499, 4.2319)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A1C #661C8A
analogous
#778A1C #408A1C #1C8A2F
triadic
#408A1C #1C408A #8A1C40
tetradic
#408A1C #1C778A #661C8A #8A2F1C
square
#408A1C #1C778A #661C8A #8A2F1C
split-complementary
#408A1C #2F1C8A #8A1C77
monochromatic
#112407 #285712 #408A1C #58BD26 #77DA47

Accessibility & contrast

On white

4.31
#408A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#408A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408A1C
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408A1C#FFFFFF#000000##000000
##408A1C1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#857728
Tritanopia (blue-blind)
#3A8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a1c;
/* rgb */ color: rgb(64, 138, 28);
/* oklch */ color: oklch(56.4% 0.159 137.8);
Tailwind
colors: {
  custom: {
    50: '#7dad62',
    500: '#408a1c',
    950: '#000000',
  },
}
SCSS
$custom: #408a1c;
$custom-light: #7dad62;
$custom-dark: #000000;
JSON
{
  "hex": "#408a1c",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 100.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5643,
    "c": 0.15895,
    "h": 137.8
  },
  "luminance": 0.19351
}

Semantic roles & 50–950 ramp

primary
#408A1C
secondary
#9546BB
accent
#3FE9B1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #408A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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