#408C18#408C18

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

Color values

HEX#408C18
RGBrgb(64, 140, 24)
HSLhsl(99, 71%, 32%)
HSVhsv(99, 83%, 55%)
CMYKcmyk(54.3%, 0%, 82.9%, 45.1%)
CIE-LABlab(51.74, -43.55, 49.79)
CIE-LCHlch(51.74, 66.15, 131.17°)
OKLaboklab(56.95% -0.1207 0.11)
OKLCHoklch(56.95% 0.163 137.7)
XYZxyz(11.6569, 19.9112, 4.0930)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C18 #64188C
analogous
#7A8C18 #408C18 #188C2A
triadic
#408C18 #18408C #8C1840
tetradic
#408C18 #187A8C #64188C #8C2A18
square
#408C18 #187A8C #64188C #8C2A18
split-complementary
#408C18 #2A188C #8C187A
monochromatic
#102406 #28580F #408C18 #58C021 #77DE40

Accessibility & contrast

On white

4.21
#408C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##408C18#FFFFFF#000000##000000
##408C181.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c18;
/* rgb */ color: rgb(64, 140, 24);
/* oklch */ color: oklch(57.0% 0.163 137.7);
Tailwind
colors: {
  custom: {
    50: '#7eae60',
    500: '#408c18',
    950: '#000000',
  },
}
SCSS
$custom: #408c18;
$custom-light: #7eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#408c18",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 99.31,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.16335,
    "h": 137.7
  },
  "luminance": 0.19912
}

Semantic roles & 50–950 ramp

primary
#408C18
secondary
#9341BF
accent
#3AEDB0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408C18

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

Preview Lab → · Contrast checker → · Palette generator →

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