#408818#408818

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

Color values

HEX#408818
RGBrgb(64, 136, 24)
HSLhsl(99, 70%, 31%)
HSVhsv(99, 82%, 53%)
CMYKcmyk(52.9%, 0%, 82.4%, 46.7%)
CIE-LABlab(50.41, -41.97, 48.56)
CIE-LCHlch(50.41, 64.19, 130.84°)
OKLaboklab(55.86% -0.1165 0.1075)
OKLCHoklch(55.86% 0.158 137.3)
XYZxyz(11.0830, 18.7634, 3.9017)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408818 #601888
analogous
#788818 #408818 #188828
triadic
#408818 #184088 #881840
tetradic
#408818 #187888 #601888 #882818
square
#408818 #187888 #601888 #882818
split-complementary
#408818 #281888 #881878
monochromatic
#0F2006 #28540F #408818 #58BC21 #76DD3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408818#FFFFFF#000000##000000
##4088181.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)
#837625
Tritanopia (blue-blind)
#3B8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #408818;
/* rgb */ color: rgb(64, 136, 24);
/* oklch */ color: oklch(55.9% 0.158 137.3);
Tailwind
colors: {
  custom: {
    50: '#7dab60',
    500: '#408818',
    950: '#000000',
  },
}
SCSS
$custom: #408818;
$custom-light: #7dab60;
$custom-dark: #000000;
JSON
{
  "hex": "#408818",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 98.571,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55859,
    "c": 0.15849,
    "h": 137.3
  },
  "luminance": 0.18764
}

Semantic roles & 50–950 ramp

primary
#408818
secondary
#9040BC
accent
#3BEDAD
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408818

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

Preview Lab → · Contrast checker → · Palette generator →

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