#408D18#408D18

#408D18 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.2% C 0.165 H 137.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#408D18
RGBrgb(64, 141, 24)
HSLhsl(99, 71%, 32%)
HSVhsv(99, 83%, 55%)
CMYKcmyk(54.6%, 0%, 83%, 44.7%)
CIE-LABlab(52.07, -43.94, 50.10)
CIE-LCHlch(52.07, 66.63, 131.25°)
OKLaboklab(57.23% -0.1218 0.1107)
OKLCHoklch(57.23% 0.165 137.7)
XYZxyz(11.8037, 20.2048, 4.1419)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D18 #65188D
analogous
#7B8D18 #408D18 #188D2A
triadic
#408D18 #18408D #8D1840
tetradic
#408D18 #187B8D #65188D #8D2A18
square
#408D18 #187B8D #65188D #8D2A18
split-complementary
#408D18 #2A188D #8D187B
monochromatic
#112406 #28590F #408D18 #58C121 #77DF41

Accessibility & contrast

On white

4.17
#408D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#408D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D18
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D18#FFFFFF#000000##000000
##408D181.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d18;
/* rgb */ color: rgb(64, 141, 24);
/* oklch */ color: oklch(57.2% 0.165 137.7);
Tailwind
colors: {
  custom: {
    50: '#7eaf60',
    500: '#408d18',
    950: '#000000',
  },
}
SCSS
$custom: #408d18;
$custom-light: #7eaf60;
$custom-dark: #000000;
JSON
{
  "hex": "#408d18",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 99.487,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57226,
    "c": 0.16455,
    "h": 137.7
  },
  "luminance": 0.20206
}

Semantic roles & 50–950 ramp

primary
#408D18
secondary
#9442BF
accent
#3AEEB0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408D18

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

Preview Lab → · Contrast checker → · Palette generator →

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