#408B1A#408B1A

#408B1A is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 56.7% C 0.161 H 137.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#408B1A
RGBrgb(64, 139, 26)
HSLhsl(100, 68%, 32%)
HSVhsv(100, 81%, 55%)
CMYKcmyk(54%, 0%, 81.3%, 45.5%)
CIE-LABlab(51.41, -43.05, 48.88)
CIE-LCHlch(51.41, 65.13, 131.37°)
OKLaboklab(56.69% -0.1193 0.1084)
OKLCHoklch(56.69% 0.161 137.7)
XYZxyz(11.5330, 19.6289, 4.1581)
Luminance0.1963 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B1A #651A8B
analogous
#798B1A #408B1A #1A8B2C
triadic
#408B1A #1A408B #8B1A40
tetradic
#408B1A #1A798B #651A8B #8B2C1A
square
#408B1A #1A798B #651A8B #8B2C1A
split-complementary
#408B1A #2C1A8B #8B1A79
monochromatic
#112407 #285710 #408B1A #58BF24 #77DC43

Accessibility & contrast

On white

4.26
#408B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#408B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B1A
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B1A#FFFFFF#000000##000000
##408B1A1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#3A8676
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408b1a;
/* rgb */ color: rgb(64, 139, 26);
/* oklch */ color: oklch(56.7% 0.161 137.7);
Tailwind
colors: {
  custom: {
    50: '#7dad61',
    500: '#408b1a',
    950: '#000000',
  },
}
SCSS
$custom: #408b1a;
$custom-light: #7dad61;
$custom-dark: #000000;
JSON
{
  "hex": "#408b1a",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 99.823,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56691,
    "c": 0.16119,
    "h": 137.7
  },
  "luminance": 0.1963
}

Semantic roles & 50–950 ramp

primary
#408B1A
secondary
#9444BD
accent
#3CEBB1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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