#408B18#408B18

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

Color values

HEX#408B18
RGBrgb(64, 139, 24)
HSLhsl(99, 71%, 32%)
HSVhsv(99, 83%, 55%)
CMYKcmyk(54%, 0%, 82.7%, 45.5%)
CIE-LABlab(51.41, -43.16, 49.48)
CIE-LCHlch(51.41, 65.66, 131.09°)
OKLaboklab(56.68% -0.1197 0.1094)
OKLCHoklch(56.68% 0.162 137.6)
XYZxyz(11.5115, 19.6203, 4.0445)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B18 #63188B
analogous
#7A8B18 #408B18 #188B29
triadic
#408B18 #18408B #8B1840
tetradic
#408B18 #187A8B #63188B #8B2918
square
#408B18 #187A8B #63188B #8B2918
split-complementary
#408B18 #29188B #8B187A
monochromatic
#102306 #28570F #408B18 #58BF21 #77DE3F

Accessibility & contrast

On white

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

On black

4.92
#408B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B18
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B18#FFFFFF#000000##000000
##408B181.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408b18;
/* rgb */ color: rgb(64, 139, 24);
/* oklch */ color: oklch(56.7% 0.162 137.6);
Tailwind
colors: {
  custom: {
    50: '#7dad60',
    500: '#408b18',
    950: '#000000',
  },
}
SCSS
$custom: #408b18;
$custom-light: #7dad60;
$custom-dark: #000000;
JSON
{
  "hex": "#408b18",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 99.13,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5668,
    "c": 0.16215,
    "h": 137.6
  },
  "luminance": 0.19621
}

Semantic roles & 50–950 ramp

primary
#408B18
secondary
#9340BE
accent
#3AEDAF
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408B18

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

Preview Lab → · Contrast checker → · Palette generator →

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