#408816#408816

#408816 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 55.8% C 0.159 H 137.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#408816
RGBrgb(64, 136, 22)
HSLhsl(98, 72%, 31%)
HSVhsv(98, 84%, 53%)
CMYKcmyk(52.9%, 0%, 83.8%, 46.7%)
CIE-LABlab(50.40, -42.08, 49.15)
CIE-LCHlch(50.40, 64.70, 130.57°)
OKLaboklab(55.85% -0.1169 0.1084)
OKLCHoklch(55.85% 0.159 137.2)
XYZxyz(11.0630, 18.7554, 3.7961)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408816 #5E1688
analogous
#798816 #408816 #168825
triadic
#408816 #164088 #881640
tetradic
#408816 #167988 #5E1688 #882516
square
#408816 #167988 #5E1688 #882516
split-complementary
#408816 #251688 #881679
monochromatic
#0E1F05 #27530D #408816 #59BD1F #76DF39

Accessibility & contrast

On white

4.42
#408816 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#408816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408816
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408816#FFFFFF#000000##000000
##4088161.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#3B8373
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #408816;
/* rgb */ color: rgb(64, 136, 22);
/* oklch */ color: oklch(55.8% 0.159 137.2);
Tailwind
colors: {
  custom: {
    50: '#7dab5f',
    500: '#408816',
    950: '#000000',
  },
}
SCSS
$custom: #408816;
$custom-light: #7dab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408816",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 22
  },
  "hsl": {
    "h": 97.895,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55848,
    "c": 0.15942,
    "h": 137.2
  },
  "luminance": 0.18756
}

Semantic roles & 50–950 ramp

primary
#408816
secondary
#8E3EBC
accent
#39EFAC
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408816

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

Preview Lab → · Contrast checker → · Palette generator →

#408816 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva