#408918#408918

#408918 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.1% C 0.160 H 137.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#408918
RGBrgb(64, 137, 24)
HSLhsl(99, 70%, 32%)
HSVhsv(99, 82%, 54%)
CMYKcmyk(53.3%, 0%, 82.5%, 46.3%)
CIE-LABlab(50.74, -42.37, 48.87)
CIE-LCHlch(50.74, 64.68, 130.92°)
OKLaboklab(56.13% -0.1176 0.1081)
OKLCHoklch(56.13% 0.16 137.4)
XYZxyz(11.2245, 19.0464, 3.9488)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408918 #611889
analogous
#798918 #408918 #188929
triadic
#408918 #184089 #891840
tetradic
#408918 #187989 #611889 #892918
square
#408918 #187989 #611889 #892918
split-complementary
#408918 #291889 #891879
monochromatic
#0F2106 #28550F #408918 #58BD21 #76DD3E

Accessibility & contrast

On white

4.37
#408918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#408918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408918
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408918#FFFFFF#000000##000000
##4089181.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#3B8474
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #408918;
/* rgb */ color: rgb(64, 137, 24);
/* oklch */ color: oklch(56.1% 0.160 137.4);
Tailwind
colors: {
  custom: {
    50: '#7dac60',
    500: '#408918',
    950: '#000000',
  },
}
SCSS
$custom: #408918;
$custom-light: #7dac60;
$custom-dark: #000000;
JSON
{
  "hex": "#408918",
  "rgb": {
    "r": 64,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 98.761,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56133,
    "c": 0.15971,
    "h": 137.4
  },
  "luminance": 0.19047
}

Semantic roles & 50–950 ramp

primary
#408918
secondary
#9140BD
accent
#3BEDAE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408918

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

Preview Lab → · Contrast checker → · Palette generator →

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