#408E18#408E18

#408E18 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.5% C 0.166 H 137.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#408E18
RGBrgb(64, 142, 24)
HSLhsl(100, 71%, 33%)
HSVhsv(100, 83%, 56%)
CMYKcmyk(54.9%, 0%, 83.1%, 44.3%)
CIE-LABlab(52.40, -44.33, 50.40)
CIE-LCHlch(52.40, 67.12, 131.33°)
OKLaboklab(57.5% -0.1228 0.1113)
OKLCHoklch(57.5% 0.166 137.8)
XYZxyz(11.9518, 20.5010, 4.1913)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E18 #66188E
analogous
#7B8E18 #408E18 #188E2B
triadic
#408E18 #18408E #8E1840
tetradic
#408E18 #187B8E #66188E #8E2B18
square
#408E18 #187B8E #66188E #8E2B18
split-complementary
#408E18 #2B188E #8E187B
monochromatic
#112506 #285A0F #408E18 #58C221 #77DF41

Accessibility & contrast

On white

4.12
#408E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#408E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E18
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E18#FFFFFF#000000##000000
##408E181.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#897B27
Tritanopia (blue-blind)
#3A8979
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e18;
/* rgb */ color: rgb(64, 142, 24);
/* oklch */ color: oklch(57.5% 0.166 137.8);
Tailwind
colors: {
  custom: {
    50: '#7eb061',
    500: '#408e18',
    950: '#000000',
  },
}
SCSS
$custom: #408e18;
$custom-light: #7eb061;
$custom-dark: #000000;
JSON
{
  "hex": "#408e18",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 99.661,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57499,
    "c": 0.16575,
    "h": 137.8
  },
  "luminance": 0.20502
}

Semantic roles & 50–950 ramp

primary
#408E18
secondary
#9542C0
accent
#3AEEB1
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408E18

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

Preview Lab → · Contrast checker → · Palette generator →

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