#408917#408917

#408917 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.1% C 0.160 H 137.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#408917
RGBrgb(64, 137, 23)
HSLhsl(98, 71%, 31%)
HSVhsv(98, 83%, 54%)
CMYKcmyk(53.3%, 0%, 83.2%, 46.3%)
CIE-LABlab(50.74, -42.42, 49.16)
CIE-LCHlch(50.74, 64.94, 130.79°)
OKLaboklab(56.13% -0.1178 0.1086)
OKLCHoklch(56.13% 0.16 137.3)
XYZxyz(11.2143, 19.0423, 3.8950)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408917 #601789
analogous
#798917 #408917 #178927
triadic
#408917 #174089 #891740
tetradic
#408917 #177989 #601789 #892717
square
#408917 #177989 #601789 #892717
split-complementary
#408917 #271789 #891779
monochromatic
#0F2005 #28550E #408917 #58BD20 #76DE3C

Accessibility & contrast

On white

4.37
#408917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#408917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408917
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408917#FFFFFF#000000##000000
##4089171.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#847725
Tritanopia (blue-blind)
#3B8474
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #408917;
/* rgb */ color: rgb(64, 137, 23);
/* oklch */ color: oklch(56.1% 0.160 137.3);
Tailwind
colors: {
  custom: {
    50: '#7dac5f',
    500: '#408917',
    950: '#000000',
  },
}
SCSS
$custom: #408917;
$custom-light: #7dac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408917",
  "rgb": {
    "r": 64,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 98.421,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56127,
    "c": 0.16018,
    "h": 137.3
  },
  "luminance": 0.19043
}

Semantic roles & 50–950 ramp

primary
#408917
secondary
#903FBD
accent
#3AEEAD
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408917

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

Preview Lab → · Contrast checker → · Palette generator →

#408917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva