#408A18#408A18

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

Color values

HEX#408A18
RGBrgb(64, 138, 24)
HSLhsl(99, 70%, 32%)
HSVhsv(99, 83%, 54%)
CMYKcmyk(53.6%, 0%, 82.6%, 45.9%)
CIE-LABlab(51.07, -42.76, 49.18)
CIE-LCHlch(51.07, 65.17, 131.01°)
OKLaboklab(56.41% -0.1186 0.1088)
OKLCHoklch(56.41% 0.161 137.5)
XYZxyz(11.3673, 19.3320, 3.9964)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A18 #62188A
analogous
#798A18 #408A18 #188A29
triadic
#408A18 #18408A #8A1840
tetradic
#408A18 #18798A #62188A #8A2918
square
#408A18 #18798A #62188A #8A2918
split-complementary
#408A18 #29188A #8A1879
monochromatic
#102206 #28560F #408A18 #58BE21 #77DE3F

Accessibility & contrast

On white

4.32
#408A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##408A18#FFFFFF#000000##000000
##408A181.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#3B8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a18;
/* rgb */ color: rgb(64, 138, 24);
/* oklch */ color: oklch(56.4% 0.161 137.5);
Tailwind
colors: {
  custom: {
    50: '#7dad60',
    500: '#408a18',
    950: '#000000',
  },
}
SCSS
$custom: #408a18;
$custom-light: #7dad60;
$custom-dark: #000000;
JSON
{
  "hex": "#408a18",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 98.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56407,
    "c": 0.16093,
    "h": 137.5
  },
  "luminance": 0.19333
}

Semantic roles & 50–950 ramp

primary
#408A18
secondary
#9240BD
accent
#3BEDAF
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408A18

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

Preview Lab → · Contrast checker → · Palette generator →

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