#408C13#408C13

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

Color values

HEX#408C13
RGBrgb(64, 140, 19)
HSLhsl(98, 76%, 31%)
HSVhsv(98, 86%, 55%)
CMYKcmyk(54.3%, 0%, 86.4%, 45.1%)
CIE-LABlab(51.72, -43.79, 51.14)
CIE-LCHlch(51.72, 67.33, 130.57°)
OKLaboklab(56.93% -0.1216 0.1121)
OKLCHoklch(56.93% 0.165 137.3)
XYZxyz(11.6096, 19.8923, 3.8438)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C13 #5F138C
analogous
#7C8C13 #408C13 #138C22
triadic
#408C13 #13408C #8C1340
tetradic
#408C13 #137C8C #5F138C #8C2213
square
#408C13 #137C8C #5F138C #8C2213
split-complementary
#408C13 #22138C #8C137C
monochromatic
#0F2004 #27560C #408C13 #59C21A #76E436

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #408c13;
/* rgb */ color: rgb(64, 140, 19);
/* oklch */ color: oklch(56.9% 0.165 137.3);
Tailwind
colors: {
  custom: {
    50: '#7eae5e',
    500: '#408c13',
    950: '#000000',
  },
}
SCSS
$custom: #408c13;
$custom-light: #7eae5e;
$custom-dark: #000000;
JSON
{
  "hex": "#408c13",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 19
  },
  "hsl": {
    "h": 97.686,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56929,
    "c": 0.16545,
    "h": 137.3
  },
  "luminance": 0.19893
}

Semantic roles & 50–950 ramp

primary
#408C13
secondary
#8F3BC0
accent
#35F3AC
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408C13

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

Preview Lab → · Contrast checker → · Palette generator →

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