#408417#408417

#408417 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.8% C 0.154 H 136.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#408417
RGBrgb(64, 132, 23)
HSLhsl(97, 70%, 30%)
HSVhsv(97, 83%, 52%)
CMYKcmyk(51.5%, 0%, 82.6%, 48.2%)
CIE-LABlab(49.07, -40.42, 47.63)
CIE-LCHlch(49.07, 62.47, 130.32°)
OKLaboklab(54.76% -0.1124 0.1053)
OKLCHoklch(54.76% 0.154 136.9)
XYZxyz(10.5200, 17.6536, 3.6636)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408417 #5B1784
analogous
#768417 #408417 #178424
triadic
#408417 #174084 #841740
tetradic
#408417 #177684 #5B1784 #842417
square
#408417 #177684 #5B1784 #842417
split-complementary
#408417 #241784 #841776
monochromatic
#0D1C05 #27500E #408417 #59B820 #76DC39

Accessibility & contrast

On white

4.63
#408417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#408417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #408417
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408417#FFFFFF#000000##FFFFFF
##4084171.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#807324
Tritanopia (blue-blind)
#3C7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #408417;
/* rgb */ color: rgb(64, 132, 23);
/* oklch */ color: oklch(54.8% 0.154 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ca85f',
    500: '#408417',
    950: '#000000',
  },
}
SCSS
$custom: #408417;
$custom-light: #7ca85f;
$custom-dark: #000000;
JSON
{
  "hex": "#408417",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 97.431,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54757,
    "c": 0.15405,
    "h": 136.9
  },
  "luminance": 0.17654
}

Semantic roles & 50–950 ramp

primary
#408417
secondary
#8A3FB8
accent
#3BEDAA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408417

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

Preview Lab → · Contrast checker → · Palette generator →

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