#408A1B#408A1B

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

Color values

HEX#408A1B
RGBrgb(64, 138, 27)
HSLhsl(100, 67%, 32%)
HSVhsv(100, 80%, 54%)
CMYKcmyk(53.6%, 0%, 80.4%, 45.9%)
CIE-LABlab(51.09, -42.59, 48.26)
CIE-LCHlch(51.09, 64.36, 131.43°)
OKLaboklab(56.42% -0.118 0.1073)
OKLCHoklch(56.42% 0.159 137.7)
XYZxyz(11.4003, 19.3452, 4.1700)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A1B #651B8A
analogous
#788A1B #408A1B #1B8A2D
triadic
#408A1B #1B408A #8A1B40
tetradic
#408A1B #1B788A #651B8A #8A2D1B
square
#408A1B #1B788A #651B8A #8A2D1B
split-complementary
#408A1B #2D1B8A #8A1B78
monochromatic
#112407 #285711 #408A1B #58BD25 #77DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408A1B#FFFFFF#000000##000000
##408A1B1.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)
#8F7D00
Deuteranopia (green-blind)
#857728
Tritanopia (blue-blind)
#3A8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a1b;
/* rgb */ color: rgb(64, 138, 27);
/* oklch */ color: oklch(56.4% 0.159 137.7);
Tailwind
colors: {
  custom: {
    50: '#7dad61',
    500: '#408a1b',
    950: '#000000',
  },
}
SCSS
$custom: #408a1b;
$custom-light: #7dad61;
$custom-dark: #000000;
JSON
{
  "hex": "#408a1b",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 100,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56424,
    "c": 0.15947,
    "h": 137.7
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#408A1B
secondary
#9445BC
accent
#3EEAB1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #408A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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