#408A1A#408A1A

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

Color values

HEX#408A1A
RGBrgb(64, 138, 26)
HSLhsl(100, 68%, 32%)
HSVhsv(100, 81%, 54%)
CMYKcmyk(53.6%, 0%, 81.2%, 45.9%)
CIE-LABlab(51.08, -42.65, 48.57)
CIE-LCHlch(51.08, 64.64, 131.29°)
OKLaboklab(56.42% -0.1182 0.1078)
OKLCHoklch(56.42% 0.16 137.6)
XYZxyz(11.3889, 19.3407, 4.1101)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A1A #641A8A
analogous
#788A1A #408A1A #1A8A2C
triadic
#408A1A #1A408A #8A1A40
tetradic
#408A1A #1A788A #641A8A #8A2C1A
square
#408A1A #1A788A #641A8A #8A2C1A
split-complementary
#408A1A #2C1A8A #8A1A78
monochromatic
#102307 #285710 #408A1A #58BD24 #77DC43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408A1A#FFFFFF#000000##000000
##408A1A1.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)
#857727
Tritanopia (blue-blind)
#3A8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a1a;
/* rgb */ color: rgb(64, 138, 26);
/* oklch */ color: oklch(56.4% 0.160 137.6);
Tailwind
colors: {
  custom: {
    50: '#7dad61',
    500: '#408a1a',
    950: '#000000',
  },
}
SCSS
$custom: #408a1a;
$custom-light: #7dad61;
$custom-dark: #000000;
JSON
{
  "hex": "#408a1a",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 99.643,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56418,
    "c": 0.15998,
    "h": 137.6
  },
  "luminance": 0.19342
}

Semantic roles & 50–950 ramp

primary
#408A1A
secondary
#9343BD
accent
#3DEBB0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #408A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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