#408A17#408A17

#408A17 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.4% C 0.161 H 137.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#408A17
RGBrgb(64, 138, 23)
HSLhsl(99, 71%, 32%)
HSVhsv(99, 83%, 54%)
CMYKcmyk(53.6%, 0%, 83.3%, 45.9%)
CIE-LABlab(51.07, -42.82, 49.47)
CIE-LCHlch(51.07, 65.43, 130.88°)
OKLaboklab(56.4% -0.1188 0.1092)
OKLCHoklch(56.4% 0.161 137.4)
XYZxyz(11.3571, 19.3279, 3.9426)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A17 #61178A
analogous
#7A8A17 #408A17 #178A28
triadic
#408A17 #17408A #8A1740
tetradic
#408A17 #177A8A #61178A #8A2817
square
#408A17 #177A8A #61178A #8A2817
split-complementary
#408A17 #28178A #8A177A
monochromatic
#0F2106 #28560E #408A17 #58BE20 #76DF3D

Accessibility & contrast

On white

4.32
#408A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#408A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408A17
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408A17#FFFFFF#000000##000000
##408A171.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#3B8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a17;
/* rgb */ color: rgb(64, 138, 23);
/* oklch */ color: oklch(56.4% 0.161 137.4);
Tailwind
colors: {
  custom: {
    50: '#7dad5f',
    500: '#408a17',
    950: '#000000',
  },
}
SCSS
$custom: #408a17;
$custom-light: #7dad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408a17",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 98.609,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.16139,
    "h": 137.4
  },
  "luminance": 0.19329
}

Semantic roles & 50–950 ramp

primary
#408A17
secondary
#913FBE
accent
#3AEEAE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408A17

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

Preview Lab → · Contrast checker → · Palette generator →

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