#408C11#408C11

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

Color values

HEX#408C11
RGBrgb(64, 140, 17)
HSLhsl(97, 78%, 31%)
HSVhsv(97, 88%, 55%)
CMYKcmyk(54.3%, 0%, 87.9%, 45.1%)
CIE-LABlab(51.71, -43.88, 51.62)
CIE-LCHlch(51.71, 67.75, 130.36°)
OKLaboklab(56.92% -0.122 0.1129)
OKLCHoklch(56.92% 0.166 137.2)
XYZxyz(11.5932, 19.8857, 3.7576)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C11 #5D118C
analogous
#7D8C11 #408C11 #118C1F
triadic
#408C11 #11408C #8C1140
tetradic
#408C11 #117D8C #5D118C #8C1F11
square
#408C11 #117D8C #5D118C #8C1F11
split-complementary
#408C11 #1F118C #8C117D
monochromatic
#0E1F04 #27550A #408C11 #59C318 #76E631

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408C11#FFFFFF#000000##000000
##408C111.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)
#877922
Tritanopia (blue-blind)
#3B8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c11;
/* rgb */ color: rgb(64, 140, 17);
/* oklch */ color: oklch(56.9% 0.166 137.2);
Tailwind
colors: {
  custom: {
    50: '#7eae5e',
    500: '#408c11',
    950: '#000000',
  },
}
SCSS
$custom: #408c11;
$custom-light: #7eae5e;
$custom-dark: #000000;
JSON
{
  "hex": "#408c11",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 17
  },
  "hsl": {
    "h": 97.073,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5692,
    "c": 0.16617,
    "h": 137.2
  },
  "luminance": 0.19887
}

Semantic roles & 50–950 ramp

primary
#408C11
secondary
#8C38C1
accent
#33F5AB
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408C11

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

Preview Lab → · Contrast checker → · Palette generator →

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