#408A16#408A16

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

Color values

HEX#408A16
RGBrgb(64, 138, 22)
HSLhsl(98, 73%, 31%)
HSVhsv(98, 84%, 54%)
CMYKcmyk(53.6%, 0%, 84.1%, 45.9%)
CIE-LABlab(51.06, -42.87, 49.75)
CIE-LCHlch(51.06, 65.67, 130.75°)
OKLaboklab(56.4% -0.119 0.1097)
OKLCHoklch(56.4% 0.162 137.3)
XYZxyz(11.3473, 19.3240, 3.8909)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A16 #60168A
analogous
#7A8A16 #408A16 #168A26
triadic
#408A16 #16408A #8A1640
tetradic
#408A16 #167A8A #60168A #8A2616
square
#408A16 #167A8A #60168A #8A2616
split-complementary
#408A16 #26168A #8A167A
monochromatic
#0F2005 #28550E #408A16 #58BF1E #76E03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408A16#FFFFFF#000000##000000
##408A161.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)
#857725
Tritanopia (blue-blind)
#3B8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a16;
/* rgb */ color: rgb(64, 138, 22);
/* oklch */ color: oklch(56.4% 0.162 137.3);
Tailwind
colors: {
  custom: {
    50: '#7dad5f',
    500: '#408a16',
    950: '#000000',
  },
}
SCSS
$custom: #408a16;
$custom-light: #7dad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408a16",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 98.276,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56396,
    "c": 0.16183,
    "h": 137.3
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#408A16
secondary
#903EBE
accent
#39EFAD
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408A16

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

Preview Lab → · Contrast checker → · Palette generator →

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