#408E17#408E17

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

Color values

HEX#408E17
RGBrgb(64, 142, 23)
HSLhsl(99, 72%, 32%)
HSVhsv(99, 84%, 56%)
CMYKcmyk(54.9%, 0%, 83.8%, 44.3%)
CIE-LABlab(52.39, -44.38, 50.68)
CIE-LCHlch(52.39, 67.37, 131.21°)
OKLaboklab(57.49% -0.123 0.1118)
OKLCHoklch(57.49% 0.166 137.7)
XYZxyz(11.9416, 20.4969, 4.1375)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E17 #65178E
analogous
#7B8E17 #408E17 #178E2A
triadic
#408E17 #17408E #8E1740
tetradic
#408E17 #177B8E #65178E #8E2A17
square
#408E17 #177B8E #65178E #8E2A17
split-complementary
#408E17 #2A178E #8E177B
monochromatic
#112506 #28590E #408E17 #58C320 #77E03F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408E17#FFFFFF#000000##000000
##408E171.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)
#897B26
Tritanopia (blue-blind)
#3A8979
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e17;
/* rgb */ color: rgb(64, 142, 23);
/* oklch */ color: oklch(57.5% 0.166 137.7);
Tailwind
colors: {
  custom: {
    50: '#7eb060',
    500: '#408e17',
    950: '#000000',
  },
}
SCSS
$custom: #408e17;
$custom-light: #7eb060;
$custom-dark: #000000;
JSON
{
  "hex": "#408e17",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 99.328,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57494,
    "c": 0.16619,
    "h": 137.7
  },
  "luminance": 0.20498
}

Semantic roles & 50–950 ramp

primary
#408E17
secondary
#9440C0
accent
#39EFB0
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408E17

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

Preview Lab → · Contrast checker → · Palette generator →

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