#408B16#408B16

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

Color values

HEX#408B16
RGBrgb(64, 139, 22)
HSLhsl(98, 73%, 32%)
HSVhsv(98, 84%, 55%)
CMYKcmyk(54%, 0%, 84.2%, 45.5%)
CIE-LABlab(51.40, -43.26, 50.05)
CIE-LCHlch(51.40, 66.16, 130.84°)
OKLaboklab(56.67% -0.1201 0.1103)
OKLCHoklch(56.67% 0.163 137.4)
XYZxyz(11.4914, 19.6123, 3.9389)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B16 #61168B
analogous
#7B8B16 #408B16 #168B27
triadic
#408B16 #16408B #8B1640
tetradic
#408B16 #167B8B #61168B #8B2716
square
#408B16 #167B8B #61168B #8B2716
split-complementary
#408B16 #27168B #8B167B
monochromatic
#0F2105 #28560E #408B16 #58C01E #76E03B

Accessibility & contrast

On white

4.27
#408B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##408B16#FFFFFF#000000##000000
##408B161.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408b16;
/* rgb */ color: rgb(64, 139, 22);
/* oklch */ color: oklch(56.7% 0.163 137.4);
Tailwind
colors: {
  custom: {
    50: '#7dad5f',
    500: '#408b16',
    950: '#000000',
  },
}
SCSS
$custom: #408b16;
$custom-light: #7dad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408b16",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 98.462,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56669,
    "c": 0.16304,
    "h": 137.4
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#408B16
secondary
#913EBF
accent
#38EFAE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408B16

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

Preview Lab → · Contrast checker → · Palette generator →

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