#408C16#408C16

#408C16 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 56.9% C 0.164 H 137.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#408C16
RGBrgb(64, 140, 22)
HSLhsl(99, 73%, 32%)
HSVhsv(99, 84%, 55%)
CMYKcmyk(54.3%, 0%, 84.3%, 45.1%)
CIE-LABlab(51.73, -43.65, 50.36)
CIE-LCHlch(51.73, 66.64, 130.92°)
OKLaboklab(56.94% -0.1211 0.1109)
OKLCHoklch(56.94% 0.164 137.5)
XYZxyz(11.6369, 19.9032, 3.9874)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C16 #62168C
analogous
#7B8C16 #408C16 #168C27
triadic
#408C16 #16408C #8C1640
tetradic
#408C16 #167B8C #62168C #8C2716
square
#408C16 #167B8C #62168C #8C2716
split-complementary
#408C16 #27168C #8C167B
monochromatic
#102205 #28570E #408C16 #58C11E #77E03C

Accessibility & contrast

On white

4.22
#408C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#408C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C16
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C16#FFFFFF#000000##000000
##408C161.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c16;
/* rgb */ color: rgb(64, 140, 22);
/* oklch */ color: oklch(56.9% 0.164 137.5);
Tailwind
colors: {
  custom: {
    50: '#7eae5f',
    500: '#408c16',
    950: '#000000',
  },
}
SCSS
$custom: #408c16;
$custom-light: #7eae5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408c16",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 22
  },
  "hsl": {
    "h": 98.644,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56943,
    "c": 0.16424,
    "h": 137.5
  },
  "luminance": 0.19904
}

Semantic roles & 50–950 ramp

primary
#408C16
secondary
#923EC0
accent
#38F0AE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408C16

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

Preview Lab → · Contrast checker → · Palette generator →

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